Solved

Submitting a child window form without asking for retry to resend information

Posted on 2003-11-03
4
924 Views
Last Modified: 2007-12-19
Hi,

I am opening a child window in which after enetring some data i am submitting the form. But when i am clickiing submit button then blank page is coming with message :-----The page can not be refreshed  without resending the information.Click retry to send the information again , or click cancel to return to the page you want to view.   i want  not to come this message and directly submit the form and came back to parent page.
I am writing like this-----

window.document.forms[0].submit();      
window.close();      
window.opener.location.reload();
window.opener.focus();
return true;

If i am clicking retry button then working fine.
Pls suggest me some solution to not to get this message and directly submit.
0
Comment
Question by:anirudh4uonly
  • 2
4 Comments
 
LVL 10

Expert Comment

by:NetGroove
ID: 9669988
Rearange to this:

window.document.forms[0].submit();    
window.opener.location.reload();
window.opener.focus();
window.close();    
return true;


0
 
LVL 10

Accepted Solution

by:
NetGroove earned 125 total points
ID: 9669995
For the refresh problem you could try this:

window.document.forms[0].submit();    
window.opener.location=window.opener.location.href;
window.opener.focus();
window.close();    
return true;

0
 
LVL 16

Expert Comment

by:jaysolomon
ID: 10346714
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: NetGroove {http:#9669995}

Please leave any comments here within the next four days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

jAy
EE Cleanup Volunteer
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
In Part 1 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7849-Hex-Maze.html) we covered the hexagonal maze basics -- how the cells are represented in a JavaScript array and how the maze is displayed.  In this part, we'…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now