Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Popup window problem

 
Rehana Shaik
Ranch Hand
Posts: 33
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic