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

A Placebo?

 At times I wonder if my medication is just a placebo. That is a medication that usually has no effect on a disease. Am I dreaming it all up...