It's not a secret anymore!
The moose likes JSF and the fly likes Popup window problem Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Popup window problem" Watch "Popup window problem" New topic
Author

Popup window problem

Rehana Shaik
Ranch Hand

Joined: Jan 03, 2003
Posts: 33
Hi,
I am having a page which opens a popup page when i click, first time everything is going fine. once the window is closed if again i want to open the popup window i am getting pagenot found exception in my parent page. Both my child and parent are jsf pages.

this is javascript in my parent form
_______________________________________________
popup=window.open('PopupList.jsp', "popup",
"height=500,width=350,toolbar=np,menubar=no,"+ "scrollbars=no");

if (!popup.opener)
popup.opener = self;
popup.focus();
return false;
_____________________________________________________________________
My child window code

------------------------------
window.opener.document.forms['form1'].elements['form1:field1'].value="aaaa";
alert("hello");
// document.forms['popupListForm'].submit();
window.close();
-----------------------------
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Popup window problem
 
Similar Threads
how to close child window
put javascript method in body tag and its not returning anything
Popup form, parent form
Check if popup window is already open from parent window?
problem getting result jsp to parent window