Discussion Locked

Javascript - Parent window refresh

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi!

When a user clicks on a button 'complete this order' on a page that lists orders it opens another window with an invoice for the user to print off.
The invoice window is opened using window.open ( etc.
The ASP behind the invoice window makes changes to the database that effect the parent window where the 'complete this order button is'. How do I refresh the parent window????????
Feel free to drop me an email jantkea@progressivebiz.com for more info. also I will not screw you around if you help me you will get points - just see my previous questions...

5 replies

by dave brown

An easy method is to put a script (e.g., JavaScript) into the parent window. The child window should then be able to call opener.yourScript(). Back in the main window, function yourScript() takes care of whatever you need done. (For me, it was filling out some form fields, for you, it would be setting the location.)

by expertpc

Please close this link if it is dead. It brings down the performance capabilities of the web server and database calls. If you are still waiting for an answer.....WOW....you are patient

This discussion is closed to new replies.