PDA

View Full Version : Infinite AJAX requests



FlaminPhoenix
26 Apr 2011, 7:07 AM
Hi,

We are having a problem with an Ext AJAX request. The request is sent in the following scenario:

1. A row click on a grid cell triggers an AJAX request.
2. On success, an activeX control is instantiated which opens a document.
3. On failure, another AJAX request (different from request #1) is sent.

#3 gets stuck in an infinite loop because the first AJAX call always moves into failure after the first 2 clicks. The browser keeps sending requests. I have tried the following:

A. Putting a breakpoint on the second Ext.Ajax.request. It never hits when the infinite loop scenario occurs.

B. The failure function in #3 gets repeatedly hit by the breakpoint even though (A) never hits.

Help?

FlaminPhoenix
27 Apr 2011, 2:11 AM
Update : If I comment out the ActiveX control initialisation, the infinite loop scenario doesnt occur at all !!