[Seaside] Javascript calls through jQuery
Esteban A. Maringolo
emaringolo at gmail.com
Mon Mar 3 18:29:29 UTC 2014
Hi Bob,
2014-03-03 12:55 GMT-03:00 Bob Arning <arning315 at comcast.net>:
> just lurking, but perhaps this is what you need:
>
>
> On 12/18/13 7:07 PM, Johan Brichau wrote:
>
> The Javascript wrappers in Seaside (JSObject subclasses) provide a number of
> convenience methods to achieve this.
> For example:
>
> html script: ((html jQuery ajax callback:[ ]) asFunction assignTo:
> 'myfunction').
>
> Then just call myfunction() from your javascripts.
Thanks for your suggestion.
I changed my code to work like that and it worked.
I was obssesed with using IIFE, for no strict reason.
I guess if you wan to do IIFE, as long as the function is not
recurrent, you can do it without defining a function name.
Thanks again!
Esteban A. Maringolo
More information about the seaside
mailing list