Page 1 of 1

parent window refresh

Posted: Mon Feb 11, 2008 5:07 am
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

Re: parent window refresh

Posted: Mon Feb 11, 2008 1:58 pm
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?

Re: parent window refresh

Posted: Wed Feb 13, 2008 3:53 am
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).

Re: parent window refresh

Posted: Wed Feb 13, 2008 10:39 am
by Popcorn
"parent" is better/preferable/standard compared to "window.opener" ??