Forum Moderators: open

Message Too Old, No Replies

Form submit in another window

         

HeadBut

4:07 pm on Aug 27, 2006 (gmt 0)

10+ Year Member



Is it possible to pop-up a window (I can do that) and then when the pop-up is closed have the other window (The original window with the link that made the pop-up) submit a form.

daveVk

4:26 am on Aug 28, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Something like this on popup close button

window.opener.formSubmit();
window.close();

where formSubmit is defined in parent window.

HeadBut

3:52 pm on Aug 28, 2006 (gmt 0)

10+ Year Member



"where formSubmit is defined in parent window"

I think you mean the function FormSubmit() is defined in the parent?

If so , then I need to figure out how to manage which form is submitted by the function FormSubmit() perhaps with a variable in the call to FormSubmit(WhichForm)?

daveVk

12:59 am on Aug 29, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Correct on both accounts. The parameters to FormSubmit will depend on what you are trying to do, form selection if more than one form involved, or passing data from popup to be included in submited form perhaps.