Candis_Sue
asked on
Returning control back ...
Returning control back to the parent when closing a popup window.
I am creating a popup window and would like to know how to refresh the calling window when I close the popup.
Thanks for your help!!!
Candis
I am creating a popup window and would like to know how to refresh the calling window when I close the popup.
Thanks for your help!!!
Candis
ASKER
Here is what I'm doing...
I am opening up a popup window so that a user can upload an image. Once the user has selected and viewed the image in the popup, I want to pass a parameter to the main page so that it knows what image was selected. Just a second. I could keep this in Session I bet... one second.
I am opening up a popup window so that a user can upload an image. Once the user has selected and viewed the image in the popup, I want to pass a parameter to the main page so that it knows what image was selected. Just a second. I could keep this in Session I bet... one second.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Interesting, I'll try that :)
Thanks!!!
Thanks!!!
ASKER
Interesting, I'll try that :)
Thanks!!!
Thanks!!!
ASKER
That works like a charm!!! Thanks SOOO MUCH!!!!
Candis :)
Candis :)
Aha, i see. The code I provided above would just get you to another page, not pass a variable back to the main window. But I think you could do that in much the same way:
replace the window.opener.location.... line with:
window.opener.document.for ms[0].elem ents[0].va lue = "Test";
Where forms[0] would be the name of the form (if it has one) and elements[0] the form element (could be a hidden input field or something) where you want to pass the value to. "Test" could be anything you place in the opened window...
replace the window.opener.location....
window.opener.document.for
Where forms[0] would be the name of the form (if it has one) and elements[0] the form element (could be a hidden input field or something) where you want to pass the value to. "Test" could be anything you place in the opened window...
ASKER
Gave you a few extra points for all your help!!!
Thanks again!!!
Thanks again!!!
No problem at all! Anytime! :) Thanks!
If you close the popup window, it would automatically put the focus back on the previous window, unless the user has opened other applications in between....
You wanted to "refresh" the main page?
BA