Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#10959 closed bug (invalid)

ajaxStop() does not work

Reported by: francesco.donzello@… Owned by:
Priority: low Milestone: None
Component: ajax Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

Description

I'm using ajaxStart() and ajaxStop() to handle the "Loading..." messages..

Anyway either if I use: $(document).ajaxStart(....).ajaxStop(....);

or: $.ajaxSetup({

complete: function(){

code...

}

})

the event does not work..

No syntax errors according to Firebug Console.

Change History (4)

comment:1 Changed 7 years ago by francesco.donzello@…

More info:

when I return a well formed JSON ajaxComplete() and ajaxStop() don't work.

when I return a malformed JSON they work

comment:2 Changed 7 years ago by frawork

This thread can be closed. It was a problem with the jQuery.parseJSON function which does not like to parse a well formed json.

comment:3 Changed 7 years ago by sindresorhus

Component: unfiledajax
Priority: undecidedlow
Resolution: invalid
Status: newclosed

comment:4 Changed 7 years ago by jaubourg

Snark remark aside... what kind of a "well formed" json?

Note: See TracTickets for help on using tickets.