submit form from popup window to parent window
Hi all, I have a form that appears in a popup window (created via a call to IE's showModalDialog()), that I would like to submit back to the parent window. The target attribute on the html:form tag only seems to allow you to specify which frame you want to submit to, not which window. Does anyone know how to do this? Thanks, Jeff. This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: submit form from popup window to parent window
Jeff, See the documentation for window.opener. opener is a reference to the spawning window from the popup. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:25 AM I have a form that appears in a popup window (created via a call to IE's showModalDialog()), that I would like to submit back to the parent window. The target attribute on the html:form tag only seems to allow you to specify which frame you want to submit to, not which window. Does anyone know how to do this? Thanks, Jeff. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: submit form from popup window to parent window
Mark, Thanks for your help. In looking for documentation on window.opener I came across a couple of articles/posts that led me to my solution. What I do is use window.open() instead of showModalDialog() to create the popup. This allows me to submit my struts form to the popup window (I had a problem doing this in a popup created by showModalDialog(). The action associated with the form does some processing then forwards to a page that has javascript in the head section that refreshes the parent (window.opener.location.href = window.opener.location) and then closes the popup window (self.close()). The refreshed parent window then displays the updated content created by the popup window. Thanks, Jeff. [EMAIL PROTECTED] on 08/26/2002 09:44:47 AM Please respond to [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:RE: submit form from popup window to parent window Jeff, See the documentation for window.opener. opener is a reference to the spawning window from the popup. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:25 AM I have a form that appears in a popup window (created via a call to IE's showModalDialog()), that I would like to submit back to the parent window. The target attribute on the html:form tag only seems to allow you to specify which frame you want to submit to, not which window. Does anyone know how to do this? Thanks, Jeff. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: submit form from popup window to parent window
My pleasure dude! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 2:53 PM To: [EMAIL PROTECTED] Subject: RE: submit form from popup window to parent window Mark, Thanks for your help. In looking for documentation on window.opener I came across a couple of articles/posts that led me to my solution. What I do is use window.open() instead of showModalDialog() to create the popup. This allows me to submit my struts form to the popup window (I had a problem doing this in a popup created by showModalDialog(). The action associated with the form does some processing then forwards to a page that has javascript in the head section that refreshes the parent (window.opener.location.href = window.opener.location) and then closes the popup window (self.close()). The refreshed parent window then displays the updated content created by the popup window. Thanks, Jeff. [EMAIL PROTECTED] on 08/26/2002 09:44:47 AM Please respond to [EMAIL PROTECTED] To:[EMAIL PROTECTED] cc: Subject:RE: submit form from popup window to parent window Jeff, See the documentation for window.opener. opener is a reference to the spawning window from the popup. Mark -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, August 26, 2002 9:25 AM I have a form that appears in a popup window (created via a call to IE's showModalDialog()), that I would like to submit back to the parent window. The target attribute on the html:form tag only seems to allow you to specify which frame you want to submit to, not which window. Does anyone know how to do this? Thanks, Jeff. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]