Google Answers Logo
View Question
 
Q: Disable "page cannot be refreshed without resending information..." warning. ( No Answer,   1 Comment )
Question  
Subject: Disable "page cannot be refreshed without resending information..." warning.
Category: Computers > Internet
Asked by: fireduck-ga
List Price: $5.00
Posted: 08 Sep 2005 13:09 PDT
Expires: 08 Oct 2005 13:09 PDT
Question ID: 565762
Hello,

I noticed that when I user reload() function in javascript, some users
may get "The page cannot be refreshed without resending the
information..." warning message box.

But I don't have this warning on my PC. 

My question is..

1. What setting causes this problem?
2. How to disable it without changing javascript code?

Request for Question Clarification by denco-ga on 08 Sep 2005 14:26 PDT
Howdy fireduck-ga,

Are you using the "POST" method on your form?

If so, can you try using "GET" instead?

Thanks!  denco-ga - Google Answers Researcher

Clarification of Question by fireduck-ga on 08 Sep 2005 15:05 PDT
Yes, I do use post method.

Since it is my company's client site. I don't want to make change
unless it is a must. Moreover, I tried on my IE 6 but I don't have
such problem. Then Why?

Request for Question Clarification by denco-ga on 08 Sep 2005 19:23 PDT
Howdy fireduck-ga,

The fact that you don't have the problem could be for several reasons.
Here is one that assigns a variation of the problem to old versions of
Internet Explorer (IE).
http://support.microsoft.com/default.aspx?scid=kb;EN-US;183763

"The behavior ... can occur if ... uses the METHOD=POST attribute in the
Form Submit tag, but not if the page uses the METHOD=GET attribute."

You might want to browse this "Experts Exchange" discussion for ideas.
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_21083521.html

This one too.
http://www.experts-exchange.com/Web/Web_Languages/ASP/Q_21036164.html

There does not appear to be any clear way to disable the warning.

Either the JavaScript or the form code will have to be tweaked but
there is no reason you can't duplicate the page, make changes on the
duplicate, and see if the changes work in the test environment.

Looking Forward, denco-ga - Google Answers Researcher

Clarification of Question by fireduck-ga on 09 Sep 2005 08:15 PDT
Hello denco-ga,

Thks for your comment. Since I don't have subscription of
expert-exchange, so I couldn't see the answer. Could you put down some
ideas here as answers?

In addition, I think we all use latest IE. And client reported that
even firefox has the problem. Really want to know how it causes the
issue.

thks,

Request for Question Clarification by denco-ga on 09 Sep 2005 15:10 PDT
I don't have a subscription either, but if I scroll down on the pages
that I cited, the responses are there, at least for me, in both IE6
and FF.

Here are some suggestions from the Experts Exchange web site, but
as you don't want to change anything with the JavaScript or the form
code, it isn't going to do you any good.  Trying to find a fix on the
browser side is not going to be the solution, and as I already stated,
there are several things (POST v GET, various frame and JavaScript
conditions) that can cause this problem, all of which requires changes
to one part of the page code or another.

Some snippets follow:

"...
<%@ Language="VBScript" %>
<% Response.Expires= -1
Response.AddHeader "Cache-Control", "no-cache"
Response.AddHeader "Pragma", "no-cache" %>
<%
..."

"You should put the Response.clear at the bottom of the page ..."

"Does a <body onLoad="init()">  script help?
In that function init() you can clear the fields or set them to
default state."

"...
<%Response.CacheControl="Public"%> did the trick.

It didn't work at first but when I removed
Response.AddHeader "Cache-Control", "no-cache" 
... it worked just as it was intended.
..."

Looking Forward, denco-ga - Google Answers Researcher
Answer  
There is no answer at this time.

Comments  
Subject: Re: Disable "page cannot be refreshed without resending information..." warning.
From: chriswo-ga on 29 Sep 2005 08:15 PDT
 
What you want to do is redirect after the post. The pattern is 1)
customer "gets" the form page 2) customer "posts" the form to your
page, and 3) customer is redirected to the page which shows the
results of the post.

In that way, if the customer every uses the back-button with refresh,
they are doing a "get" and you won't have multiple submissions.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy