struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "El Harouchi, Jaafar [IT]" <jaafar.elharou...@citigroup.com>
Subject RE: submitting back to opener page
Date Thu, 26 Jun 2003 16:08:57 GMT
Try:
    opener.document.forms[0].submit();
If that doesn't work, debug by doing
    alert(opener.document.forms[0]);
We have this working in IE 5+, NS 4.7+
HTH
-jaafar
 

-----Original Message-----
From: Nagendra Kumar O V S [mailto:nagendra@ikigo.com]
Sent: Thursday, June 26, 2003 4:50 AM
To: struts-user@jakarta.apache.org
Subject: RE: submitting back to opener page



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="sdf.do" works for me ,but i want to submit the form
to get the other form elements
 
any clues?
 
TIA
 
-nagi
 
-------Original Message-------
 
From: Struts Users Mailing  <mailto:struts-user@jakarta.apache.org> List
Date: Thursday, June 26, 2003 12:22:34 PM
To: 'Struts Users Mailing  <mailto:struts-user@jakarta.apache.org> List'
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:andrew.david.hill@gridnode.com]
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:nagendra@ikigo.com]
Sent: Thursday, 26 June 2003 14:13
To: struts-user@jakarta.apache.org
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: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


.

			
____________________________________________________
 <http://www.incredimail.com/redir.asp?ad_id=309&lang=9>   IncrediMail - Email has
finally evolved -  <http://www.incredimail.com/redir.asp?ad_id=309&lang=9> Click
Here 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message