Suntower
Posts: 225
|
| Posted: 09/26/2006, 10:15 AM |
|
Hi,
I have a main grid window with a popupwindow called from an <a>. Works fine. The popup window has a Delete button. I want the parent window to reload when the Delete button is pressed and the popup window closes, but I can't figure out how to do it.
When I put a JS function in the Delete button, that fires -before- the ASP code so the window closes, but the parent window is never 'refreshed'.
So... How can I have the JS code which forces the parent window to reload fire -after- the ASP code for the delete?
Or, how can I have the popupwindow() function refresh the parent window -after- the focus returns to the parent window?
---JC
_________________
---On a campaign for more examples and better docs! |
 |
 |
Suntower
Posts: 225
|
| Posted: 09/26/2006, 10:32 AM |
|
In the immortal words of Emily Lytella....
NEVER MIND.
JS cAsE SenSITivity strikes again.
FWIW: Just add a little function to body tag...
<body onunload="ReloadMe()">
ReloadMe()
{
window.opener.location.reload(false);
}
_________________
---On a campaign for more examples and better docs! |
 |
 |
Oper
Posts: 1195
|
| Posted: 09/26/2006, 10:33 AM |
|
opener.location.reload(true);
self.close();
_________________
____________________________
http://www.7bz.com (Free CMS,CRM Developed in CCS)
http://www.PremiumWebTemplate.com
Affiliation Web Site Templates
Please do backup first |
 |
 |
|