Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
40
rated 0 times [  43] [ 3]  / answers: 1 / hits: 18327  / 11 Years ago, tue, june 18, 2013, 12:00:00

I need to open a Popup window on clicking a button in a xhtml page.
I have written something like that:



<p:commandButton type=submit value=Select User onclick=showGrpMemberSearchPageCalenderLeave()/>


and the java script is like:



function showGrpMemberSearchPageCalenderLeave()
{
window.open('./SearchGroupMembersLeaveCalander.xhtml,resizable=no,
toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235');

return true;
}


But it just opens the page in the current window, no pop up window is opening.Please suggest.


More From » jsf

 Answers
10

try this one instead



function showGrpMemberSearchPageCalenderLeave() { 
window.open('./SearchGroupMembersLeaveCalander.xhtml','mywindow', 'resizable=no,toolbar=no,scrollbars=yes,height=450,width=530,top=145,left=235');
return true;
}


Syntax



window.open(url, windowName, specs);

[#77571] Sunday, June 16, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
martina

Total Points: 101
Total Questions: 103
Total Answers: 111

Location: Seychelles
Member since Mon, Jun 28, 2021
3 Years ago
;