Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Gmail messages arriving in Inbox

  • 09-11-2006 8:13am
    #1
    Registered Users, Registered Users 2 Posts: 1,086 ✭✭✭


    How does Gmail after revieving am email display it in the column on the left straight away when it is recieved. If you send an email to yourself (from another account) straight away the new emails number (Inbox(2)) on gmail get incremented by one (Inbox(3)).

    Is this due to a refresh of a small frame or an AJAX command which check for new email every few seconds, or is this due to somehow the server contacting the browser after the pages is loaded to notify it of an update?

    Is it at all possible for a server to contact the browser after a page has loaded? Or does the server always have to be called by the browser


Comments

  • Moderators, Politics Moderators Posts: 41,239 Mod ✭✭✭✭Seth Brundle


    Did you look at the source code at all?

    A server doesn't contact a browser. The browser is the one that makes contact.
    http://www.w3.org/Protocols/ and http://en.wikipedia.org/wiki/HTTP


  • Registered Users, Registered Users 2 Posts: 1,086 ✭✭✭Peter B


    kbannon wrote:
    Did you look at the source code at all?
    Yea had a look at the source code.

    Complicated Javascript baffles me! Have no idea where it calls the auto-refresh or where it mentions the number of seconds between refreshes.


  • Registered Users, Registered Users 2 Posts: 872 ✭✭✭grahamor


    its all done with AJAX, gmail is probably one of the best examples (IMO) of what can be done with AJAX. My personal favourite is when i start typing an email address the autocomplete appears saving me lots of time and spelling mistakes.


Advertisement