473,387 Members | 3,787 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How do avoid IE alert

i am trying refresh the iframe, ie browser

gives me the below alert.

The page can not be refreshed with out resending the information.click retry to send the information again or click Cancel to return to the page that you were trying to view.

i am expecting your valuble comments on
why am i getting this warning.and
how to avoid this warning.

Please help me .
Aug 27 '08 #1
9 2255
The below shown is the code that i am trying to refresh the iframe.

for(i=0; (a = document.getElementsByTagName("iframe")[i]); i++)
{

a.contentWindow.location.reload();


}
Aug 27 '08 #2
I am in situvation where i could not change any of my get to post method, with out changing get to post, is there any way to avoid this alert.
Aug 27 '08 #3
sorry i could not change post to get.
Aug 27 '08 #4
acoder
16,027 Expert Mod 8TB
This alert popup appears because you've posted something and then you're refreshing the page. This will cause the form to be re-submitted. This may be unwanted, e.g. if you've just made a payment. To avoid this, use Post/Redirect/Get (PRG).
Aug 27 '08 #5
Hi All
Thanks for the reply Acoder. The link given was helpful.

i have solved the above problem, using the below code.

for(i=0; (a = document.getElementsByTagName("iframe")[i]); i++)
{

a.src=a.src;


}

Happy to be a member of this forum:-)
Aug 29 '08 #6
acoder
16,027 Expert Mod 8TB
Glad you got it working, though it should be more of a server-side solution rather than using JavaScript to set the iframe src.
Aug 29 '08 #7
oh...what's wrong with this solution?

will it fail in any case?I am not aware of the impact of this solution i just tried it


Please Advise!
Sep 1 '08 #8
acoder
16,027 Expert Mod 8TB
I'm not sure if it will cause a problem or not, just that I didn't have that in mind. If you look at the link(s), the solution is server-side, so after the post request is accepted, the page redirects using the location header to a different page using a GET request. I'm assuming the reason why your solution works is that you were posting to the same page rather than a different action page.
Sep 1 '08 #9
Thank you for the Advise :)
Sep 18 '08 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

11
by: Sebastian Schöps | last post by:
Hello all, I have to access a website which does a stupid browser check and only accepts Netscape 4.7. The problem is that I have to access the website with Mozilla or Internet Explorer. ...
4
by: Carlos Marangon | last post by:
Hello! People go to sign my guestbook and wrote all text in capital letters. Did you know any script that shows an window alert when one types the second capital letter? Best regards,
1
by: Wolfram Heinz | last post by:
Hi there, How can I avoid type-conversion (object variable --> string) when passing an object variable to a function? Example: --> catch(myerrorobject) alert(myerrorobject.filename); {...
5
by: lk | last post by:
Hi there, is it possible to avoid that a user could enter a text directly in a combobox? The user should only select a text from the list of the combobox without typing anything. Thanks
6
by: Good Man | last post by:
Hi there I am trying to assign an "onclick" event to a dynamically-created DOM element (an image). I have read countless times that "eval()" is to be avoided at all costs. However, I cannot...
16
by: Richard Maher | last post by:
Hi, I have this Applet-hosted Socket connection to my server and in an ONevent/function I am retrieving all these lovely rows from the server and inserting them into the Select-List. (The on...
0
by: Ganesh | last post by:
Please Get me some solution to open popup window in firefox,: Working fine with IE its opening in firefox and on submitting data to server * its throwing a alert saying: The page you...
5
by: tuananh87vn | last post by:
hi, I'mm writing script for adding friend to a friend list.i'm using a form including friend_name (text), message (textarea) and below is my code: if(isset($_POST)) { ...
2
by: PriyaPadma | last post by:
Hi All, Help Need. We are using third party control. We didnt receieve any codebehind and dll. Basically website developed in AJAX. Here is my problem. I need to populate windows login username in a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.