473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How GMail works ?!?

Hi;
sorry if this is a re-post.

My question is basically this...
When you receive an email and you already have a GMail page open, it
shows you the new mail without refreshing (or it does that at
background), now my question is this; i am sure my browser is not
querying GMail every second if there is a new email, so their server has
to trigger my browser in some way?!?

I assume; if this can be done with asp.net i can write a chat interface
for my website without using applets. Even if this is not possible i
still want to know how gmail does that, is it possible to use socket
programming with web programming or how?

Thank you for your time...

Can Uzun
Oct 20 '06 #1
6 1761
Can Uzun wrote:
Hi;
sorry if this is a re-post.

My question is basically this...
>
Thank you for your time...

Can Uzun

They use AJAX...
Oct 20 '06 #2
Mark Ingram wrote:
Can Uzun wrote:
>Hi;
sorry if this is a re-post.

My question is basically this...

>>
Thank you for your time...

Can Uzun

They use AJAX...
No, i know they use AJAX but how in the backgroun does it work, as far
as i know there are ajax dlls for .net platform, so can i do the same
thing an asp.net?
Thank you...
Oct 20 '06 #3
Check out ASP.NET AJAX (aka Atlas):
http://ajax.asp.net/

GMail uses AJAX to periodically poll the server for new messages.

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/
Can Uzun wrote:
Mark Ingram wrote:
Can Uzun wrote:
Hi;
sorry if this is a re-post.

My question is basically this...
>
Thank you for your time...

Can Uzun


They use AJAX...
No, i know they use AJAX but how in the backgroun does it work, as far
as i know there are ajax dlls for .net platform, so can i do the same
thing an asp.net?
Thank you...
Oct 20 '06 #4
Chris Fulstow wrote:
Check out ASP.NET AJAX (aka Atlas):
http://ajax.asp.net/

GMail uses AJAX to periodically poll the server for new messages.

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/
Can Uzun wrote:
>>Mark Ingram wrote:
>>>Can Uzun wrote:
Hi;
sorry if this is a re-post.

My question is basically this...
Thank you for your time...

Can Uzun

They use AJAX...

No, i know they use AJAX but how in the backgroun does it work, as far
as i know there are ajax dlls for .net platform, so can i do the same
thing an asp.net?
Thank you...

So they query the servers all the time, no other triggering mechanism,
this was what i was looking for thank you...
Oct 20 '06 #5

<assertion confidence="58%">
They also use an IFrame to which data is continually writen, this
simulates a persistent open connection and removes the need for a poll.

</assertion>

you *can* do something similar with plain ol' AJAX, but I'm willing to
bet that Google have a customised web server for supporting a
persistent connection. Apache 2.0 has an alpha event driven model for
this kind of thang, but IIS so far as I know doesn't have the necessary
infrastructure to build a GMail in the way that Google built it.

If you want to do more complex things than Atlas does out of the box, I
always recommend AJAX.Net professional which is awesomely awesome, but
to get the best use from it, requires a different model for your
code-behind (a *very* clean separation of UI from business-logic and
data tiers) and lots of custom JScript.
Chris Fulstow wrote:
Check out ASP.NET AJAX (aka Atlas):
http://ajax.asp.net/

GMail uses AJAX to periodically poll the server for new messages.

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/
Can Uzun wrote:
Mark Ingram wrote:
Can Uzun wrote:
>
>Hi;
>sorry if this is a re-post.
>>
>My question is basically this...
>
>
>>
>Thank you for your time...
>>
>Can Uzun
>
>
>
They use AJAX...
No, i know they use AJAX but how in the backgroun does it work, as far
as i know there are ajax dlls for .net platform, so can i do the same
thing an asp.net?
Thank you...
Oct 20 '06 #6
That's right, you can verify this using an HTTP sniffer tool like
Fiddler:
http://www.fiddlertool.com/fiddler/

--
Chris Fulstow
MCP, MCTS
http://chrisfulstow.blogspot.com/
So they query the servers all the time, no other triggering mechanism,
this was what i was looking for thank you...
Oct 20 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: joealey2003 | last post by:
Hi all... A simple mail example like... <? mail("acco...@yahoo.com","Subject of Message","Message"); ?> does not work to yahoo or spymac.com, but the same works to gmail and other servers.
12
by: Stanley | last post by:
Hi, I'd like to write a HTML page which can help me directly log in my Yahoo!mail or Gmail account without typing user name and password. Basically, I want to set up a link, click it and pop up...
21
by: thomson | last post by:
Hi folks, Does any one have any idea which platform does GMAIL works, whether its JSP, ASPX or any other Regards thomson
1
by: ClickList | last post by:
Hello Friends I'm using the follow code in my website to send/receive e-mails: SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587); smtp.DeliveryMethod = SmtpDeliveryMethod.Network;...
4
by: MMAS | last post by:
I've got my .net application set up to use gmail as a mail server (see code below). Everything works quite well, actually, EXCEPT for one particular email account. I've created an "admin" account...
0
by: Roger | last post by:
I am having a problem sending email through smtp.gmail.com using smtplib. Everything works and the mail is sent and received, except quit. The following shows the problem (without bothering to...
3
by: Carmine [www.thetotalsite.it] | last post by:
Hi, I'm trying to use gmail smtp server for an asp.net application, but when I try to send an email I get this error: "The remote certificate is invalid according to the validation procedure." ...
7
by: undbund | last post by:
Hi I am creating a newsletter system. The software should run from desktop computer (localhost) but be able to send email to anyone on the internet. Can you guys give me some ideas on how to...
9
by: mmm | last post by:
After reading about and using the smtplib module, I thought code such as below would ignore the 'Cc: ' body line below when sending messages and instead simply use the RECEIVERS list session =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.