Check for updates?

Discussion in 'JavaScript' started by Triexa, Oct 5, 2006.

  1. #1
    How do most apps "check for updates". i.e. gmail, "shoutboxes", etc. etc.

    My guess is, request the page every second or something but that seems like it would take a long time, and of course the page would then have to query the database for new data?

    So, if that isn't how it's done... how is it? Are there frameworks designed more specifically for this sort of thing?
     
    Triexa, Oct 5, 2006 IP
  2. penagate

    penagate Guest

    Messages:
    277
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #2
    penagate, Oct 5, 2006 IP
  3. zerohex

    zerohex Peon

    Messages:
    19
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    To do something like this, look into using AJAX and the DOM. (you can do a search on both terms to learn about them)

    zerohex
     
    zerohex, Oct 8, 2006 IP