Skip to main content

Bug Tracker

Side navigation

#10959 closed bug (invalid)

Opened December 06, 2011 09:54AM UTC

Closed December 06, 2011 10:27AM UTC

Last modified December 06, 2011 10:44AM UTC

ajaxStop() does not work

Reported by: francesco.donzello@gmail.com 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.

Attachments (0)
Change History (4)

Changed December 06, 2011 09:57AM UTC by francesco.donzello@gmail.com comment:1

More info:

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

when I return a malformed JSON they work

Changed December 06, 2011 10:17AM UTC by frawork comment:2

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

Changed December 06, 2011 10:27AM UTC by sindresorhus comment:3

component: unfiledajax
priority: undecidedlow
resolution: → invalid
status: newclosed

Changed December 06, 2011 10:44AM UTC by jaubourg comment:4

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