parent window refresh

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
thatsme
Forum Commoner
Posts: 87
Joined: Sat Apr 07, 2007 2:18 am

parent window refresh

Post by thatsme »

I have a link in a page on clicking the link a popup opens. In the popup i fill some fields and submit (update). After submitting the parent window should show the updated values. At the time of submitting the form in popup i am getting a message, Internet Explorer alert on resending information. How to prevent this message?

Thanks
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: parent window refresh

Post by califdon »

thatsme wrote:I have a link in a page on clicking the link a popup opens. In the popup i fill some fields and submit (update). After submitting the parent window should show the updated values. At the time of submitting the form in popup i am getting a message, Internet Explorer alert on resending information. How to prevent this message?

Thanks
How are you submitting the form in the popup? If the action= points to the main form, I don't think the browser should give that message. Isn't that only for when using Back or history?
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: parent window refresh

Post by VladSun »

In the parent window: put a form which fields contain all the data to refresh the page, but without any visible elements (i.e. submit button). Let's have a value of its ID "formID"
In the child window: call
[js]parent.forms['formID'].submit()[/js] on submit (update).
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Popcorn
Forum Commoner
Posts: 55
Joined: Fri Feb 21, 2003 5:19 am

Re: parent window refresh

Post by Popcorn »

"parent" is better/preferable/standard compared to "window.opener" ??
Post Reply