• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Webpage auto-refresh

Collapse
X
  •  
  • Filter
  • Time
  • Show
Clear All
new posts

    #11
    Originally posted by administrator View Post
    In the header of the html file something as simple as:

    Code:
    <meta http-equiv="refresh" content="60" />
    Where 60 is the number of seconds between refreshes.
    Far too simple.

    Much better to include a JavaScript AJAX component to request an update from the server. Much more work. Much more time. Much more invoicing.
    Cats are evil.

    Comment


      #12
      Here's the offending line in the Torygraph homepage:

      Code:
      <meta http-equiv="refresh" content="300;url=?source=refresh" />

      Comment


        #13
        I've actually worked at a major newspaper.

        The Telegraph's auto refresh is probably an attempt to boost its ABC ratings. The "?source=refresh" param is a way of filtering out the refreshes from its own internal ratings
        Cats are evil.

        Comment


          #14
          That looks simpler but this works too:-

          http://www.xoggoth.org/pages/hits.html
          bloggoth

          If everything isn't black and white, I say, 'Why the hell not?'
          John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

          Comment


            #15
            Originally posted by swamp View Post
            I've actually worked at a major newspaper.

            The Telegraph's auto refresh is probably an attempt to boost its ABC ratings. The "?source=refresh" param is a way of filtering out the refreshes from its own internal ratings
            Rather than the ABC ratings I'd say it's an attempt to get more ads infront of you. That's also the reason so many news sites split articles into page 1, 2, 3 etc.

            Comment


              #16
              Originally posted by xoggoth View Post
              That looks simpler but this works too:-

              http://www.xoggoth.org/pages/hits.html
              That's cheating!

              Comment


                #17
                I know! That probably only works in IE come to think of it, FF etc. is bit different. I figured out a more general version if anyone wants it.
                Last edited by xoggoth; 28 July 2009, 17:36.
                bloggoth

                If everything isn't black and white, I say, 'Why the hell not?'
                John Wayne (My guru, not to be confused with my beloved prophet Jeremy Clarkson)

                Comment


                  #18
                  No, it worked fine in my Firefox.

                  Comment


                    #19
                    Originally posted by DimPrawn View Post
                    Cue NickFitz and one of his fascinating posts.

                    No need:

                    Originally posted by chicane View Post
                    Here's the offending line in the Torygraph homepage:

                    Code:
                    <meta http-equiv="refresh" content="300;url=?source=refresh" />
                    WHS

                    They do make one XHR request after the page has loaded to get a bit of JSON containing the data for the "Most Viewed" bit in the right-hand sidebar. Switching tabs on there causes another XHR to get the relevant content, but that seems to be the only Ajaxy stuff on the home page.

                    Comment


                      #20
                      Originally posted by xoggoth View Post
                      I know! That probably only works in IE come to think of it, FF etc. is bit different. I figured out a more general version if anyone wants it.
                      Originally posted by thunderlizard View Post
                      No, it worked fine in my Firefox.
                      Works fine in Safari 3 on my MacBook

                      Comment

                      Working...
                      X