loadXML error

hi,



im using dhtmlgrid on my project…when i deployed my project online…and access the application with a very slow internet connection loadxml error flashes…

to retrieve data i use ajax to store them in a session variable and in the i load the content of the grid via loadxml with a jsp file as a parameter…the jsp file is basically the xml of the gris…inside the jsp i retrieve the value of the session variable and tokenizes it to place them as values on the grid…



if i use access the application through the LAN or a relatively fast internet connection(dsl) the application works perfectly…but when i access the sustem through a very poor connection(diaL-UP-SPEED) the loadxml error appears…the code for generating the xml is probably correct since it loads perfectl using A FAST INTERNET CONNECTION…i suspect that somewhere in my implimentation of ajax i need to catch the error and do what is needed…what i did was attached an error handler to the grid…what i do is if an error occurs reload the xml file…but still doesnt work… in my ajax code what i did was if the http status is 200, which means ok, i do whatever is needed…like loading the content of the grid via loadxml, if the http status is not 200, what i do is re-execute the ajax call…still does not work…



please help…it has been really bothering me…thanks…

hope to hear from you really soon…

The issue can be caused by event concurrency, when result of your first ajax call is not available while fetching XML from JSP script.
Please be sure to try debug version of dhtmlxcommon
    dhtmlx.com/docs/products/kb/inde … tmlxcommon
it will show exact server side response, so if error was caused by incorrect work of server side code you will be able to check details.

Also you may try to force adding unique elements to fetched url by
    grid.preventIECaching(true);
it must prevent data caching.