Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Automatic updates

Automatic updates

Scheduled Pinned Locked Moved Web Development
questionannouncement
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brakanjan
    wrote on last edited by
    #1

    Hi How do webpages update themselves automatically, like the ones that shows the soccer scores during the world cup? tx

    J V J 3 Replies Last reply
    0
    • B Brakanjan

      Hi How do webpages update themselves automatically, like the ones that shows the soccer scores during the world cup? tx

      J Offline
      J Offline
      Jonathan321
      wrote on last edited by
      #2

      G'day.... One (simple) way is to use the JavaScript "setTimeout()" function. Eg: timeDelay = 30; // Time of delay before refresh in seconds. myTimer = setTimeout( "refreshThisPage();" , (timeDelay * 1000) ); function refreshThisPage() { document.location.replace("www.MyURL.com"); } Hope this helps!;) -- JON -- Good Fast Cheap... (Pick two, you can't have all three!)

      B S 2 Replies Last reply
      0
      • J Jonathan321

        G'day.... One (simple) way is to use the JavaScript "setTimeout()" function. Eg: timeDelay = 30; // Time of delay before refresh in seconds. myTimer = setTimeout( "refreshThisPage();" , (timeDelay * 1000) ); function refreshThisPage() { document.location.replace("www.MyURL.com"); } Hope this helps!;) -- JON -- Good Fast Cheap... (Pick two, you can't have all three!)

        B Offline
        B Offline
        Brakanjan
        wrote on last edited by
        #3

        jip tx alot

        1 Reply Last reply
        0
        • B Brakanjan

          Hi How do webpages update themselves automatically, like the ones that shows the soccer scores during the world cup? tx

          V Offline
          V Offline
          Vasudevan Deepak Kumar
          wrote on last edited by
          #4

          Hi, It is simple. Just add a META HTTP-EQUIV refresh tag.

          <META HTTP-EQUIV="Refresh" CONTENT="3;URL=http://www.some.org/some.html">

          Check out this site for complete META tag usage: http://vancouver-webpages.com/META/metatags.detail.html[^] Deepak Kumar Vasudevan http://deepak.portland.co.uk/

          1 Reply Last reply
          0
          • J Jonathan321

            G'day.... One (simple) way is to use the JavaScript "setTimeout()" function. Eg: timeDelay = 30; // Time of delay before refresh in seconds. myTimer = setTimeout( "refreshThisPage();" , (timeDelay * 1000) ); function refreshThisPage() { document.location.replace("www.MyURL.com"); } Hope this helps!;) -- JON -- Good Fast Cheap... (Pick two, you can't have all three!)

            S Offline
            S Offline
            SimonS
            wrote on last edited by
            #5

            A variation on this would be to use the XMHTTP object with "setTimeOut()" for a partial refresh. Cheers, Simon "I ask candidates to create an object model of a chicken.", Bruce Eckel on interviewing programmers. animation mechanics in SVG       (latest pic 1) (latest pic 2)

            1 Reply Last reply
            0
            • B Brakanjan

              Hi How do webpages update themselves automatically, like the ones that shows the soccer scores during the world cup? tx

              J Offline
              J Offline
              Jonavis
              wrote on last edited by
              #6

              there are a few ways of doing this.. one is with the META tag , which will reload the complete page after 100 seconds. another, which I prefer when I really am not interested in reloading the entire page, is with an IFRAME. You can create an individual page the has the necesary process (ASP, PHP, whatever) and reloads after a couple of seconds. of course you'll have a page called scores.asp that will do whatever you need to do and have the so that only that section of your page does the trick. IFRAMEs are pretty niffty since they work like a layer. You could even put it inside a cell of the main table of your site (for example). hope that works luck Jon x-zd Designs

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups