Sunday, January 15, 2012

Refreshing The Window Opener

So here's a simple problem I had earlier this week while working on a personal project.



I had a webpage in an iframe that spanwed a window. The new window would either add a record to the database or update an existing record. The page that opened the window would then reflect the updated data.



Well for a while I tried various different things. Then I finally came upon the correct way to do it:




window.opener.location.reload(true);


So after I do my updates or additions, I run that code and it refreshes the data list and shows the new information.



Easy. As. Pie.

No comments:

Post a Comment

Ever feel like no one is listening?

 Ever have that feeling that no one is listening to you? Yeah, that feeling. It can be a strong feeling to have, a hurtful feeling also. The...