This is a discussion on Forms within the PHP General forums, part of the PHP Programming Forums category; Hi, This is probably more of a javascript question but thought someone here might have an answer. I have a ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi,
This is probably more of a javascript question but thought someone here might have an answer. I have a form in a pop up windoe I want this form data to be submited to the window that opened the popup - how can I do this? I have tried setting the target attribute on the form tag to window.opener() but that just opens a new window. Any ideas? Thanks __________________________________________________ _______________ Tired of 56k? Get a FREE BT Broadband connection http://www.msn.co.uk/specials/btbroadband |
|
|||
|
Matthew Oatham wrote:
> Hi, > > This is probably more of a javascript question but thought someone here > might have an answer. > > I have a form in a pop up windoe I want this form data to be submited to > the window that opened the popup - how can I do this? I have tried > setting the target attribute on the form tag to window.opener() but that > just opens a new window. > > Any ideas? > > Thanks It is JavaScript. You're on the right track with window.opener(), but that can't be the target. I believe you're going to have to do something with an onSubmit(), and pass the data that way. -- By-Tor.com It's all about the Rush http://www.by-tor.com |
|
|||
|
Matthew Oatham wrote:
> Hi, > > This is probably more of a javascript question but thought someone here > might have an answer. > > I have a form in a pop up windoe I want this form data to be submited to > the window that opened the popup - how can I do this? I have tried > setting the target attribute on the form tag to window.opener() but that > just opens a new window. > > Any ideas? The simplest way is to name your main window with javascript: window.name = 'domainMainWindow'; Then you can use the name as target in your form. |