SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: Gmail & AJAX

  1. #1
    PEACE WILL WIN abalfazl's Avatar
    Join Date
    Feb 2005
    Location
    Beyond the seas there is a town
    Posts
    711
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Gmail & AJAX

    Hello firends

    when I recieve new email from AJAX,Without any refresh it shows me I recieve new email and number of add one to number of email in inbox.

    I want to know how gmail do that?

    Is it by AJAX?
    When we use AJAX,User does something ,And after user did an action on interface ,then interface will change,But in this case it shows me without any refresh or without any action on interface,Please know ne if you know any tutorial about this case.

    Thanks in advance
    I shall build a boat,I shall cast it in the water,
    I shall sail away from this strange earth,
    Where no one awaken the heroes in the wood of love

  2. #2
    Caveat surfer Buddy Bradley's Avatar
    Join Date
    May 2003
    Location
    Cambridge, UK
    Posts
    2,366
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think Gmail uses a hidden iframe for its Ajax calls. Regardless, you can easily do auto-updating without any user interaction by setting a repeating callback (with setTimeout or similar) which polls the server for updates every X seconds.

  3. #3
    PEACE WILL WIN abalfazl's Avatar
    Join Date
    Feb 2005
    Location
    Beyond the seas there is a town
    Posts
    711
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello firend

    I think Gmail uses a hidden iframe for its Ajax calls.
    May you write code for this idea?

    Thanks
    I shall build a boat,I shall cast it in the water,
    I shall sail away from this strange earth,
    Where no one awaken the heroes in the wood of love

  4. #4
    PEACE WILL WIN abalfazl's Avatar
    Join Date
    Feb 2005
    Location
    Beyond the seas there is a town
    Posts
    711
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello firend

    Someone if I want to know about it,then I must search about AJAX push methods,


    I search and ask about " ajax push methods " ,It seems when we use that we cann't close connection,But that can cause problems - sometimes the page won't seem to fully load, and other problems,

    May you give me more points and reference about "AJAX push Methods" and How do they work?


    GOOD LUCK!
    I shall build a boat,I shall cast it in the water,
    I shall sail away from this strange earth,
    Where no one awaken the heroes in the wood of love

  5. #5
    Non-Member
    Join Date
    Sep 2006
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Buddy Bradley
    I think Gmail uses a hidden iframe for its Ajax calls. Regardless, you can easily do auto-updating without any user interaction by setting a repeating callback (with setTimeout or similar) which polls the server for updates every X seconds.
    do you know any tutorial for this? 'cause... ehehe seriously I could get past "auto-updating without any user interaction"


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •