[Seaside] Javascript calls through jQuery

Bob Arning arning315 at comcast.net
Mon Mar 3 15:55:47 UTC 2014


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.

cheers
Johan


On 3/3/14 10:38 AM, Esteban A. Maringolo wrote:
> The trick is in the naming of the function (and it's recurrent call
> from within) and the #create decoration which followed by a #call: is
> a way to implement "immediately invoked function expression" in JS
> (IIFE for short).
>
> I still have to learn how all the JavaScript/jQuery wrappers work, but
> so far it's impressive how much you can do writing a few lines of
> Smalltalk.
>
> If there is a way of doing this without having to modify JSFunction
> I'll be happy to use. Otherwise see attached changeset (and integrate
> if necessary:)  )
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20140303/c5dec3ac/attachment.htm


More information about the seaside mailing list