How to update automatically?

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Oct 2009
Posts: 2
Reputation: shubhamjain1 is an unknown quantity at this point 
Solved Threads: 0
shubhamjain1 shubhamjain1 is offline Offline
Newbie Poster

How to update automatically?

 
0
  #1
Oct 30th, 2009
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?
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 101
Reputation: jomanlk is an unknown quantity at this point 
Solved Threads: 18
jomanlk jomanlk is offline Offline
Junior Poster
 
1
  #2
Oct 30th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 2
Reputation: shubhamjain1 is an unknown quantity at this point 
Solved Threads: 0
shubhamjain1 shubhamjain1 is offline Offline
Newbie Poster
 
0
  #3
Oct 30th, 2009
Oh thank you jomanlk. The logic was simple enough and wasnt very tough to implement.
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 101
Reputation: jomanlk is an unknown quantity at this point 
Solved Threads: 18
jomanlk jomanlk is offline Offline
Junior Poster
 
0
  #4
Oct 30th, 2009
You're welcome, please mark the thread as closed
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC