window.location.reload

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Aaron Fude

    window.location.reload

    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.
  • Aaron Fude

    #2
    Re: window.location .reload

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

    Thanks

    Comment

    • Thomas 'PointedEars' Lahn

      #3
      Re: window.location .reload

      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.userA gent strings would suffice for an
      answer.)


      PointedEars
      --
      var bugRiddenCrashP ronePieceOfJunk = (
      navigator.userA gent.indexOf('M SIE 5') != -1
      && navigator.userA gent.indexOf('M ac') != -1
      ) // Plone, register_functi on.js:16

      Comment

      • Aaron Gray

        #4
        Re: window.location .reload

        "Aaron Fude" <aaronfude@gmai l.comwrote in message
        news:85e38b7c-f024-42b1-b8f9-f6f0b3f66616@p2 5g2000hsf.googl egroups.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.c om/whatever";

        Aaron


        Comment

        Working...