problem in loading data with AJAX
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   manu_saraswat
Posted On:   Thursday, April 27, 2006 03:59 AM

On onload of a page, i have many AJAX calls (approx 20).
when i insert alert in between then the page is successfully loaded, and when i remove the alerts then javascript error occurs.
It seems as b4 the server responds to the call, javascript tries to load the values, which is in this case is undefined.

This problem occured due to asynchronized calls made to the server or the server is late in responding to the call.

plz provide me with a solution to this problem.

Re: problem in loading data with AJAX

Posted By:   Anonymous  
Posted On:   Friday, April 28, 2006 10:21 AM

If you are specifying any call back methods for your Ajax requests. you can make the requests sequential by making the second ajax request in the callback method of the first ajax request after the success response is received.
About | Sitemap | Contact