• 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!
Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Webpage auto-refresh"

Collapse

  • NickFitz
    replied
    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

    Leave a comment:


  • NickFitz
    replied
    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.

    Leave a comment:


  • thunderlizard
    replied
    No, it worked fine in my Firefox.

    Leave a comment:


  • xoggoth
    replied
    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.

    Leave a comment:


  • thunderlizard
    replied
    Originally posted by xoggoth View Post
    That looks simpler but this works too:-

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

    Leave a comment:


  • Chutney Spoon
    replied
    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.

    Leave a comment:


  • xoggoth
    replied
    That looks simpler but this works too:-

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

    Leave a comment:


  • swamp
    replied
    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

    Leave a comment:


  • chicane
    replied
    Here's the offending line in the Torygraph homepage:

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

    Leave a comment:


  • swamp
    replied
    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.

    Leave a comment:


  • thunderlizard
    replied
    Coincidentally I was reading about that yesterday.
    There's a timer that runs on the client. Every time it ticks, through the magic of Ajax it posts back to the server to get the latest refresh, and rewrites the appropriate bit.

    Leave a comment:


  • administrator
    replied
    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.

    Leave a comment:


  • Clippy
    replied
    Originally posted by tino View Post
    just refreshes 'innit
    Sorry, but I need to know how to make sure I won't catch swine flue from it!

    Leave a comment:


  • Zippy
    replied
    The website contains a subliminal message telling you to press Ctrl and F5 every few seconds. You won't know you are doing it.

    Leave a comment:


  • darmstadt
    replied
    I have a USB powered finger which just presses F5 every few seconds

    Leave a comment:

Working...
X