Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Peter Ensch on Mar 17, 2008 11:17
open dhtmlx forum
Multiple AJAX requests in Internet Explorer

This question is follow up to your answer to my question last week:
http://dhtmlx.com/docs/products/kb/index.php?s=normal&q=2337&a=2966

After further research, I came across this thread which indicates that IE has no
limit to concurrent Ajax requests. Firefox has a limit of 2. It looks like the problem
I'm seeing is related to this - that IE is attempting multiple concurrent requests which
cannot be handled by the server.
Here's the discussion I found on this:
http://lists.rubyonrails.org/pipermail/rails-spinoffs/2006-January/002247.html
follow the Next In Thread for code someone wrote as a workaround.

Have the dhmtlxGrid team seen this. Do you recommend a workaround.

Thanks,
Peter
Texas Instruments Inc.
Dallas, Texas
Answer posted by Support on Mar 18, 2008 05:19
In which mode you are using dataprocessor?

When dataprocessor used in non-auto-update mode
    grid.setUpdateMode("off");
and sync process triggered by
    grid.sendData();
updated rows info sent to server one by one ( which means only one request per dataprocessor in one moment of time )

If you are using some other update mode - request will be sent each time as data changed in grid, but it pretty complex to make updates in grid so fast

In common case it possible to switch dataprocessor to send-all-at-once mode , when , instead of separate request for each data row, single request will be sent for all rows
    dataProc.setTransactionMode("POST",true);