Calling multiple Ajax Functions overides response
Hello, I am new to ajax but need to solve a what seems to me a tricky situation.
I receive some live soccer matches data through some xml files that are put in a server. One of the attributes of the xml items is "status" which when a match is currently playing displays the minutes. I build a grid with div-s while reading the xml, and in some particular div I call the function that triggers the ajax, which should return the result to the div which called it.
The php code:
Please help, at least with any idea where to start searching for solutions.
Thanks in advance!
You are using the same XMLHttpRequest object for all the elements. So (except for the last element) there will be only one call for onreadystatechange for each element. Only the last element will reach the readyState==4
|All times are GMT +1. The time now is 09:37 PM.|
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.