![]() |
Scripting question for brainiacs
Is there a way to refresh a parent page from a pop-up?
For example, Imagine you have a page with a link that says "click here to sign up". When clicked a pop-up opens requesting the usual info. Once completed, the user can close that window and cause the previous or parent window to automatically refresh. Suggestions? |
The only thing I can think of is to do it using http push or comet.
- Source page that spawns popup has jquery requesting blah.php every second waiting for a value of "true" - Source page loads popup - Popup shows whatever, onUnload it runs a script to set blah.php to true - Source page get's it's true signal and does whatever Can be made more "live" using http push but that's the idea basically here. |
I think you can do this with native javascript and the window object and using window.opener to control the window which triggered the popup
|
Parent page:
Code:
<script type="text/javascript"> Code:
<script type="text/javascript"> Code:
protected void btnServer_Click(object sender, EventArgs e) Or something like this in the child page using window.opener: Code:
<script> |
All times are GMT -7. The time now is 02:33 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123