<div dir="ltr">Hi Chris, I did NOT test it but maybe something like this works?<div><br></div><div>onKeyUp: (&#39; alert(evt) &#39; asFunction: #(&#39;evt&#39;))<br></div><div><br></div><div>Basically, you can write whatever function (here I do a simple alert).</div><div><br></div><div>Cheers,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 1, 2015 at 12:50 AM, Chris Muller <span dir="ltr">&lt;<a href="mailto:ma.chris.m@gmail.com" target="_blank">ma.chris.m@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I am still learning.  I want to make a desktop-like app in the<br>
browser.  Seaside lets me use Ajax to respond to individual widget<br>
clicks and update my model in the server, as well as update the DOM in<br>
the client accordingly, all in one step:<br>
<br>
        html button<br>
            onClick: ((html jQuery: #idOfElementToReplace) load<br>
                html:<br>
                    [ : resultOfClickHtml | model doTheAppropriateUpdates.<br>
                    resultOfClickHtml render: model ]);<br>
            with: &#39;click to update the model&#39;.<br>
<br>
I also tested onMouseOver: and onMouseOut:, they worked.  It feels a<br>
little strange to be updating my model within html rendering, but it<br>
gives me near desktop-app-like development capability for the browser<br>
with efficient event / response transfer, using Seaside.  Wonderful!<br>
<br>
I also need to handle onKeyUp and onKeyDown:, but I&#39;m not sure the<br>
proper way to access the Event information by this approach.  I<br>
couldn&#39;t find any examples I could learn from.  How could I do it?<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" rel="noreferrer" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Mariano<br><a href="http://marianopeck.wordpress.com" target="_blank">http://marianopeck.wordpress.com</a><br></div>
</div>