?
Solved

Avoiding Re-submit alert while doing Auto-Refresh

Posted on 2004-04-18
3
Medium Priority
?
2,880 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 63

Expert Comment

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

0
 

Author Comment

by:blackstallion
ID: 10857026
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 150 total points
ID: 10857101
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Several part series to implement Internet Explorer 11 Enterprise Mode
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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

718 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