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 06:52:17 GMT
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


Mime
View raw message