<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">wow, there is something new to learn
      about Seaside and JS/jQuery every day. Thanks for digging this
      out, I wasn't aware of the fact that you can define js functions
      and make them callable for the js side in Seaside...<br>
      <br>
      <br>
      <br>
      Am 03.03.14 16:55, schrieb Bob Arning:<br>
    </div>
    <blockquote cite="mid:5314A603.6060207@comcast.net" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <font face="Georgia">just lurking, but perhaps this is what you
        need:<br>
        <br>
      </font><br>
      <div class="moz-cite-prefix">On 12/18/13 7:07 PM, Johan Brichau
        wrote:<br>
      </div>
      <pre wrap="">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


</pre>
      <div class="moz-cite-prefix">On 3/3/14 10:38 AM, Esteban A.
        Maringolo wrote:<br>
      </div>
      <blockquote
cite="mid:CAJMgPCLm94jmiFWMYt7X_ctegsEbBOWq6fCqQEbN2tHE8233cQ@mail.gmail.com"
        type="cite">
        <pre wrap="">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 <span class="moz-smiley-s1" title=":)"><span>:)</span></span> )

</pre>
      </blockquote>
      <br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
-----------------------------------------------------------------------
Objektfabrik Joachim Tuchel          <a class="moz-txt-link-freetext" href="mailto:jtuchel@objektfabrik.de">mailto:jtuchel@objektfabrik.de</a>
Fliederweg 1&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<a class="moz-txt-link-freetext" href="http://www.objektfabrik.de">http://www.objektfabrik.de</a>
D-71640 Ludwigsburg                  <a class="moz-txt-link-freetext" href="http://joachimtuchel.wordpress.com">http://joachimtuchel.wordpress.com</a>
Telefon: +49 7141 56 10 86 0&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Fax: +49 7141 56 10 86 1

</pre>
  </body>
</html>