[Seaside] Re: Checkbox and AJAX?
snoobabk at yahoo.ie
Sat Jul 5 23:06:45 UTC 2014
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.
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.
More information about the seaside