Need this ajax long polling example explained
Posted: Thu Jan 20, 2011 8:45 pm
Hey all!
I was reading this example http://blog.perplexedlabs.com/2009/05/0 ... g-polling/ that explains what ajax long polling is and a simple means to implement it. Based on that reading though I have a question. If the script on the server side does not find any new data to send back to the client, it terminates after 30 seconds. If the client does not receive a callback how does it know to close and re-open the connection? Thanks!
- slick1537
I was reading this example http://blog.perplexedlabs.com/2009/05/0 ... g-polling/ that explains what ajax long polling is and a simple means to implement it. Based on that reading though I have a question. If the script on the server side does not find any new data to send back to the client, it terminates after 30 seconds. If the client does not receive a callback how does it know to close and re-open the connection? Thanks!
- slick1537