PDA

View Full Version : Simultaneous Ajax calls cause weird problem



mysticav
25 Feb 2014, 8:03 PM
Hi,

I'm using Ext 4.2.1

When I do an ajax call one after another, the second call is not loaded correctly.

In the following screenshot from Google Dev Tools, you can see how the first Ajax call is done correctly, but the second one loads the root page with GET method, and the initiator is not Connection.js

48063

I can avoid this issue with Ext.deferring the 2nd call with 1000 milliseconds.

So I guess there's some kind of conflict when dealing with subsequent ajax calls.

I even tried the 2nd call with JQuery Ajax method, and I get the same problem.

This has been impossible to debug, and it happens randomly. So any help will be appreciate it.

scottmartin
26 Feb 2014, 10:06 AM
See if the following is useful:
https://kb.sencha.com/#!article-133

mysticav
20 Mar 2014, 5:27 PM
Hi,

This ended up to be a server-side issue.

Thanks anyways.