[Seaside-dev] JQuery XHR methods

Esteban A. Maringolo emaringolo at gmail.com
Fri Jul 18 15:46:37 UTC 2014


I was needing to handle an "error" callback for an xhr post, and found
there is no #onError: handler in JQPost. Went to jQuery website I
noticed most of the success/fail/complete methods in JQAjax hierarchy
are deprecated.

Deprecation Notice
The jqXHR.success(), jqXHR.error(), and jqXHR.complete() callback
methods introduced in jQuery 1.5 aredeprecated as of jQuery 1.8. To
prepare your code for their eventual removal, use jqXHR.done(),
jqXHR.fail(), and jqXHR.always() instead.

Is anybody updating JQuery wrapper for that? Or is there already a way
to deal with the new "promise" style way of chaining callbacks?.

What I'm doing now is something like:
((html jQuery post callback: [] value: ()) call: 'done' with: ("js
function")) call: 'fail' with: ("fail function")

Regards!


Esteban A. Maringolo


More information about the seaside-dev mailing list