hi,
window.opener.document.forms[0].submit();
does't work for me, says "object does't support this property" i am using IE5.0
window.opener.document.location.href="" works for me ,but i want to submit the form to get the other form elements
 
any clues?
 
TIA
 
-nagi
 
-------Original Message-------
 
Date: Thursday, June 26, 2003 12:22:34 PM
Subject: RE: submitting back to opener page
 
If you want to submit the form in the original page, you can try _javascript_
like:
window.opener.document.forms[0].submit();
If you need to first set some values from the child window:
window.opener.document.forms[0].elements["field name"].value =
<value from child>
HTH
-jaafar

ps: Matt will probably correct me to forms[0]["field name"] above.

-----Original Message-----
From: Andrew Hill [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 26, 2003 2:22 AM
To: Struts Users Mailing List
Subject: RE: submitting back to opener page


My app had a similar requirement so what I did was have the popup submit
directly to the action and then the action returned a forward to a page
(displayed in the popup) that had _javascript_ to invoke a refresh method in
the opener window and then to close its own (popup) window.
-----Original Message-----
From: Nagendra Kumar O V S [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 26 June 2003 14:13
To: [EMAIL PROTECTED]
Subject: submitting back to opener page


hi,
i have a jsp with a button which opens up a new pop-up window. when
i say submit on the pop-up window , i want to close the pop-up window and go
to the action class(do the needful) and now i want to refresh the opener
page(main jsp).
can i do this, if yes how??
any ideas...

--nagi

Nagendra Kumar O V S
Member Technical Staff
Ikigo India Private Ltd.
470-B, Road No. 36,
Jubilee Hills,
Hyderabad 500033
Contact(O): 23544671
Cell: 98482-41789


____________________________________________________
IncrediMail - Email has finally evolved - Click Here

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


.
____________________________________________________
  IncrediMail - Email has finally evolved - Click Here

Reply via email to