[Seaside] how to hold an attribute in a variable?
johan at inceptive.be
Tue Jul 31 13:31:20 UTC 2012
Do not confuse script generation with script execution.
You are indeed passing the generated script as an argument to the #tRId message.
What you need to do is to execute this script on the client and pass the resulting value back to the server. This is how to do it:
html jQuery ajax
callback: [:value | self tRId: value]
value: (((html jQuery id: id) closest: 'tr') attributes: 'id')
On 31 Jul 2012, at 15:22, Malte Grunwald wrote:
> Hi everybody,
> i try to hold an attribute, more precisely an id in a variable.
> This is how i tried it:
> self tRId:((jScript jQuery id: id) closest: 'tr') attributes: 'id')).
> Is it impossible to do it like that? I have always a jQuery function in my variable.
> Thank you!
> seaside mailing list
> seaside at lists.squeakfoundation.org
More information about the seaside