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
|