[Seaside] Checkbox and AJAX?
johan at inceptive.be
Sun Jul 6 12:14:54 UTC 2014
On 06 Jul 2014, at 01:06, carlo.t <snoobabk at yahoo.ie> wrote:
> I thick #script: does not work because this is a separate ajax call where
> the reference to 'this' is not known and is not the row you expect.
> #script would work if you reference a valid DOM id for the row e.g.
> html checkbox
> onClick: (html jQuery ajax serializeThisWithHidden;
> script: [:s | s
> << (s jQuery: #idForRow) addClass: 'selectedRow']);
> #onSuccess is probably triggering a callback where the reference to 'this'
> is valid and so the following line will work:
> (html jQuery this closest: 'tr') addClass: 'selectedRow'
> View this message in context: http://forum.world.st/Checkbox-and-AJAX-tp4731692p4766717.html
> Sent from the Seaside General mailing list archive at Nabble.com.
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside