Solved

Avoiding Re-submit alert while doing Auto-Refresh

Posted on 2004-04-18
3
2,844 Views
Last Modified: 2007-12-19
Hi,
Currently I am doing auto-refresh in my application in Internet Explorer 5.5. I am reloading the page again and again using javascript method .(window.reload()). since first time when i am accessing the page i am submitting some information ,everytime the window is refreshed, I am getting an IE pop-up asking "The page cannot be refreshed without sending the information.Click Retry to re-send the information or click cancel to continue". Since I am using the POST method to submit I am getting this message. I know that if I use GET method I can solve this problem but if I use GET then all my submitted information will be displayed in the address bar as QUERYSTRING which I dont want to do. So is there any other way or browser setting which will allow me to disable this alert for re-submit?

Thanks in advance.
0
Comment
Question by:blackstallion
3 Comments
 
LVL 63

Expert Comment

by:Zvonko
Comment Utility
Yes, there is.
Use instead of window.location.reload()
This line:
window.location=window.location.href;

0
 

Author Comment

by:blackstallion
Comment Utility
Hi Zvonko,

I already tried with the same thing. But the problem I use "window.reload()" or change it to "window.location=window.location.href" I got the alert for "Retry" or "Cancel" which will ask for confirmation to re-submit. But i dont want this to happen as during auto-refresh, the user should not click on "Retry" everytime The page should be automatically reloaded...do you have any idea how to disble this browser alert?
0
 
LVL 36

Accepted Solution

by:
Zyloch earned 50 total points
Comment Utility
There is no way to avoid the Retry or Cancel thing. If you don't want your visitors seeing your information, then you should use GET, but first, encrypt the information with a simple encryptipn process like the one here: http://javascript.internet.com/passwords/text-encryption.html and then decrypt it when you need it.

Hope this helped

--Zyloch
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

I spend far too much time on the web keeping up with the news: politics, the environment, computer stuff, the Experts Exchange. It's never-ending. But many of the most informative web pages are overwhelmed with noise: scrolling banners, flashing tex…
Problem I downloaded the Microsoft Internet Explorer 9 Beta, today, to give it a test drive and maybe write a review for the site, and it failed miserably and got stuck in a crash restart loop. The error message given is as illustrated below i…
Google currently has a new report that is in beta and coming soon to Webmaster Tool accounts. This Micro Tutorial will highlight new features for Google Webmaster Tools.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…

728 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

10 Experts available now in Live!

Get 1:1 Help Now