CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Force Page Reload After Popup Window Delete Button

Print topic Send  topic

Author Message
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!
View profile  Send private message
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!
View profile  Send private message
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
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.