Hey folks...
I have a basic PHP query to a database.
In the while loop returning the data, I am trying to call the same ajax function that uses XMLHttpRequest and .open...
Everything works fine except that the ajax call is not getting (GET) the data from an external page fast enough... so it says, "loading" (http.readyState != 4)... On the last item from the query, the ajax function being called (again....) finally has ample time to sort the data.
How do I get the while loop to pause until the data is properly loaded? Or, how can I get ajax to tell the loop to wait until it's done?...
Any ideas?
Thanks, Sam