By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,817 Members | 2,152 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,817 IT Pros & Developers. It's quick & easy.

window.location.reload

P: n/a
Hi,

When

window.location.reload(true);

is executed, is the browser supposed to take notice of the fact that
the content type may have changed (say, from text/html to image/jpeg)
and that the new content should be handled differently? If the answer
is "yes", does Internet Explorer follow this rule?

Thanks!

Aaron
PS: This is an unrelated question. I sometimes post a pdf file on my
website, but I forget to set the permissions, so the user gets a
"cannot view this file" message. When I am notified, I fix the
permissions, but when the user hits Refresh, they get raw pdf instead
of having Acrobat open the file. In some cases they need to hit Ctrl-
Refresh and in other cases they need to close the browser and open it
again. I'm assuming it's a browser issue that I have no control over
(except for setting permissions correctly the first time). I don't
really have a question here.
Jul 18 '08 #1
Share this Question
Share on Google+
3 Replies


P: n/a
As a quick follow up, the problem that I described only occurs with
IExplorer and not with any other browsers.

Thanks
Jul 18 '08 #2

P: n/a
Aaron Fude wrote:
As a quick follow up, the problem that I described only occurs with
IExplorer and not with any other browsers.
Which version(s) have you tested with on which operating systems on which
platforms? (The unforged navigator.userAgent strings would suffice for an
answer.)
PointedEars
--
var bugRiddenCrashPronePieceOfJunk = (
navigator.userAgent.indexOf('MSIE 5') != -1
&& navigator.userAgent.indexOf('Mac') != -1
) // Plone, register_function.js:16
Jul 18 '08 #3

P: n/a
"Aaron Fude" <aa*******@gmail.comwrote in message
news:85**********************************@p25g2000 hsf.googlegroups.com...
Hi,

When

window.location.reload(true);

is executed, is the browser supposed to take notice of the fact that
the content type may have changed (say, from text/html to image/jpeg)
and that the new content should be handled differently? If the answer
is "yes", does Internet Explorer follow this rule?
Why not use cookies for state and try :-

window.location.href = http://www.whereever.com/whatever";

Aaron
Jul 18 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.