[Seaside-dev] JQuery XHR methods

Johan Brichau johan at inceptive.be
Fri Jul 18 16:05:19 UTC 2014


I did an update when Seaside 3.1.1 was released but I may have missed these.

Can you make an issue that I can handle when I come back from holidays?


Johan (sent from my mobile)

> On 18 Jul 2014, at 17:46, "Esteban A. Maringolo" <emaringolo at gmail.com> wrote:
> 
> 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
> _______________________________________________
> seaside-dev mailing list
> seaside-dev at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev


More information about the seaside-dev mailing list