Er. Maybe my mootools is a little rusty but.

https://github.com/mootools/mootools-core/blob/master/Source/Request/Request.JSON.js

This will fire an error event when it fails to parse the response.

request.json automatically passes the object/array. No need to do so
manually or just use request.js itself.

Most errors with this tend to be to do with invalid response or
content-type issues. validate the response in console and json validators,
ensure it's not 204 nocontent etc.

onComplete is supposed to always fire, though.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"MooTools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to