spetsacdc
07-24-2008, 08:18 AM
Hi,
I need to use ajax polling to update a page as soon as a value in the mysql database is changed. The polling will only happen on one page of the website and only like 1-10 people have access to the page at a time. Ideally, the ajax would call the php function every second, but does that strain the server any? I could live with like 20-30 second intervals if needed. Also, I read an article on long polling (comet) vs. regular. Does my situation call for long or regular? Regular seems easy to set up with jQuery.
Thanks :)
I need to use ajax polling to update a page as soon as a value in the mysql database is changed. The polling will only happen on one page of the website and only like 1-10 people have access to the page at a time. Ideally, the ajax would call the php function every second, but does that strain the server any? I could live with like 20-30 second intervals if needed. Also, I read an article on long polling (comet) vs. regular. Does my situation call for long or regular? Regular seems easy to set up with jQuery.
Thanks :)