[PHP] Returning FORM vars from popup
(Sorry, I inadvertently sent an incomplete post) I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with this test code in itemSelect.php: form input type=hidden value=mine name=newparam input type=button value=Close onClick=window.opener.location.reload();window.close() /form Not surprisingly, this doesn't work. My calling page reloads and the popup closes, but the onClick code bypasses the form and newparam doesn't get passed. What, please, is a good way to accomplish passing newparam (and other form vars) back to the calling page? Many thanks, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Returning form vars from popup
I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Returning FORM vars from popup
Hi, use onSubmit() and if you have trouble with it please refer to the javascript manual, this list is for php all the best Rich Fox wrote: (Sorry, I inadvertently sent an incomplete post) I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with this test code in itemSelect.php: form input type=hidden value=mine name=newparam input type=button value=Close onClick=window.opener.location.reload();window.close() /form Not surprisingly, this doesn't work. My calling page reloads and the popup closes, but the onClick code bypasses the form and newparam doesn't get passed. What, please, is a good way to accomplish passing newparam (and other form vars) back to the calling page? Many thanks, Rich -- http://www.radinks.com/upload Drag and Drop File Uploader. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Returning form vars from popup
Rich Fox said the following on 9/18/2003 12:24 PM I have a popup window, itemSelect.php, from which I would like to reload the calling page. itemSelect.php has a form, and I want to reload the calling page with these form variables. How can I do this? I can reload the page easily enough, with you can use javascript to set form variables in the calling page like window.opener.docuemnt.forms.your_element.value= whatever_value_you_want HTH R'twick -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php