Ajax async not waiting for valid response

Enterprise 2.5 version: My ajax calls are returning before they are ‘ready’.

IE puts up a message saying that ‘not enough information’ is available. Firefox doesn’t show a message.

In both browsers I’m having to put an alert message after the ‘dhtmlxajax.get’ statement, to slow it down so that the loader has a valid response. When I take out the alert it proceeds without the incoming params.

Any suggestions? I guess I can use some other ajax methods but I want to stay completely with dhtmlx if I can.

I guess I could also try the sync method if I’m forced to.

Marvin Elder

Please provide the snippet of problematic code

The correct way of async. request is

//code to work with response here