Solved

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

Posted on 2003-11-03
4
929 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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Make Session back to empty 9 30
Running a javascript project in WebStorm 2 28
Search Item in Table 2 23
Can't get page to reload 9 12
Article by: DanRollins
This article describes a JavaScript program that creates a maze made of hexagonal cells.  In Part 2 (http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/A_7850-Hex-Maze-Part-2.html), we'll extend the program by adding a depth-…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

830 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