CodeChargeMVP
Posts: 473
|
| Posted: 04/28/2011, 1:09 AM |
|
Hi,
This seems to be one of the most common problems nowdays on software development.
One of our pages should do four ajax requests to a four php scripts on the server.
The main problem is than when you do different request to the server using the same
instance of the XMLHttpRequest Object then only the last call has a response while the other
requests get stuck (this means than the ajaxloader.gif keeps running and running etc..).
So the solution is just simply and easy make different instances
from the XMLHttpRequest Object so that the requests doesn´t collapse.
I´ve heard about arrays, queues requests, that´s not necessary only applying some basic OOP concepts it resolved.
I attach some interesting related links:
http://www.9lessons.info/2011/03/multiple-ajax-requests-with-jquery.html
http://javascript.about.com/library/blajax13.htm
http://www.ozzu.com/website-design-forum/multiple-ajax-...ime-t67591.html
Thank you very much in advance.
_________________
Best Regards
Entrepeneur | NT Consultant
|
 |
 |
|