Bug Tracker

Modify

Ticket #3157 (closed bug: fixed)

Opened 5 years ago

Last modified 3 years ago

JSONP doesn't always correctly fire ajax events

Reported by: tandoan Owned by:
Priority: major Milestone: 1.3
Component: ajax Version: 1.2.6
Keywords: jsonp events Cc:
Blocking: Blocked by:

Description

When making a remote call, jQuery.active is incremented, but never decremented properly, so ajaxStart and ajaxComplete events are not fired after the first ajaxStart.

Attachments

smalltest.html Download (1.4 KB) - added by tandoan 5 years ago.
jsonreturn.html Download (26 bytes) - added by tandoan 5 years ago.

Change History

comment:1 Changed 5 years ago by flesler

  • need changed from Review to Test Case

I don't really see why. I checked the source and it doesn't depend on whether it is jsonp or not. Can you provide a test case to reproduce the error ? just a small html file that shows the problem.

Changed 5 years ago by tandoan

Changed 5 years ago by tandoan

comment:2 Changed 5 years ago by tandoan

Attached are 2 files, changing line 34 in smalltest.html so that jsonreturn.html is on a different server will cause the incorrect event behavior.

comment:3 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to fixed

I think this has been fixed long ago...

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.