943,946 Members | Top Members by Rank

Ad:
Oct 30th, 2009
0

How to update automatically?

Expand Post »
In orkut, as soon as one receives a new scrap, one gets an alert at side bottom even if page is not refreshed. I am sure that orkut doesn't check for scraps again and again by Ajax. Then how does orkut know that i have received a new scrap?? Similar thing is in shout boxes, whenever a new message is received they update automatically. Anyone know how it happens?
Reputation Points: 17
Solved Threads: 14
Junior Poster in Training
shubhamjain1 is offline Offline
56 posts
since Oct 2009
Oct 30th, 2009
1
Re: How to update automatically?
Orkut probably uses some server side push technology (maybe Comet). But shout boxes work by continually pinging the server for new posts. Normal AJAX. Well, most of them anyway.
Reputation Points: 13
Solved Threads: 19
Junior Poster
jomanlk is offline Offline
103 posts
since Oct 2009
Oct 30th, 2009
0
Re: How to update automatically?
Oh thank you jomanlk. The logic was simple enough and wasnt very tough to implement.
Reputation Points: 17
Solved Threads: 14
Junior Poster in Training
shubhamjain1 is offline Offline
56 posts
since Oct 2009
Oct 30th, 2009
0
Re: How to update automatically?
You're welcome, please mark the thread as closed
Reputation Points: 13
Solved Threads: 19
Junior Poster
jomanlk is offline Offline
103 posts
since Oct 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JavaScript / DHTML / AJAX Forum Timeline: Pass variables depending on linked that is clicked
Next Thread in JavaScript / DHTML / AJAX Forum Timeline: Draggable elements in JQUERY





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC