my dog learned polymorphism*
The moose likes JSF and the fly likes Popup window problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
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://aspose.com/file-tools
 
subject: Popup window problem
 
Similar Threads
Check if popup window is already open from parent window?
problem getting result jsp to parent window
put javascript method in body tag and its not returning anything
Popup form, parent form
how to close child window