Ajax Talk - Asynchronous javascript and xml discussion board
 FAQ   Search    Usergroups      Register   Profile   Check your messages   Log in 
Signup now to enjoy a range of free membership advantages !!
Ajax Talk - Moderators Wanted
Too many concurrent ajax requests?

Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX Programmers Exchange
View previous topic :: View next topic  
Author Message
New one
New one

Joined: 02 Jul 2008
Posts: 1

PostPosted: Wed Jul 02, 2008 10:40 pm    Post subject: Too many concurrent ajax requests? Reply with quote

So I've made a page that has to stay up to date with a database (buttons enable / disable, images appear / disappear, commands can be sent, etc.) In order to do this I use the javascript setInterval function to create four different intervals. One every 2 sec, two every 10sec, and one every minute.

The issue I'm running into is that the response text received from the PHP script I run is not sent to my target element (using document.getElementById().innerHTML) on a reliable basis. It works fine on load (I stagger the requests in an attempt to prevent this issue), but if a user changes the timing of the events by, say, clicking a button, my problem may appear and the response text is never parsed / sent to my element. I use Firebug to debug my javascript and the XMLHttpRequest is sent and the response is correct, the data is just never displayed.

Has anyone seen this before? Is there a workaround or solution?

Thanks and cheers!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Ajaxtalk.com Forum Index -> AJAX Programmers Exchange All times are GMT
Page 1 of 1

Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
 XML & Copyright Notice 

Powered by phpBB © 2001, 2005 phpBB Group

What is according to Wikipedia: Ajax Web2.0 XML E4X

Link to our site:


del.icio.us digg spurl wists simpy newsvine blinklist furl blogmarks yahoo! myweb smarking ma.gnolia segnalo reddit fark technorati cosmos

Normal Bookmark

Partner Button Links:
Codecrunch.com: Webmaster Tutorials    One Ajax

Partner Text Links:
quomon | web20log | ajaxmatters | tableless | 456bereastreet | music charts | gift ideas | competitions | free xbox 360 | link trade ?

it consultancy & project management lead generation zoekmachine optimalisatie steal these buttons seo expert