<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7654.12">
<TITLE>RE: [Seaside] jQuery expressions</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>Ah, wonderful, thanks. Are there any more examples available somewhere showing generic application of javascript generation in Smalltalk? Not jQuery, specifically, but rather Javascript-Core et al, say,<BR>
<BR>
'return val != &quot;&quot;' asFunction: #('val')<BR>
<BR>
-Boris<BR>
<BR>
--<BR>
+1.604.689.0322<BR>
DeepCove Labs Ltd.<BR>
4th floor 595 Howe Street<BR>
Vancouver, Canada V6C 2T5<BR>
<BR>
boris@deepcovelabs.com<BR>
<BR>
CONFIDENTIALITY NOTICE<BR>
<BR>
This email is intended only for the persons named in the message<BR>
header. Unless otherwise indicated, it contains information that is<BR>
private and confidential. If you have received it in error, please<BR>
notify the sender and delete the entire message including any<BR>
attachments.<BR>
<BR>
Thank you.<BR>
<BR>
<BR>
<BR>
-----Original Message-----<BR>
From: seaside-bounces@lists.squeakfoundation.org on behalf of Lukas Renggli<BR>
Sent: Thu 8/19/2010 9:12 PM<BR>
To: Seaside - general discussion<BR>
Subject: Re: [Seaside] jQuery expressions<BR>
<BR>
html jQuery new alias: 'el'; closest: 'div.row'; find: 'div.status';<BR>
find: 'p'; hide; end; find: 'p.value'; show; asFunction: #('el')<BR>
<BR>
On 19 August 2010 22:06, Boris Popov, DeepCove Labs (SNN)<BR>
&lt;boris@deepcovelabs.com&gt; wrote:<BR>
&gt; How would I go about expressing the following in Smalltalk,<BR>
&gt;<BR>
&gt; 'el.closest(&quot;div.row&quot;).find(&quot;div.status&quot;).find(&quot;p&quot;).hide().end().find(&quot;p.valid&quot;).show()'<BR>
&gt;         asFunction: #('el')<BR>
&gt;<BR>
&gt; I can't seem to figure out a way of instantiating JQueryInstance that would<BR>
&gt; print itself as simply el or even $(el)...<BR>
&gt;<BR>
&gt; -Boris<BR>
&gt;<BR>
&gt; --<BR>
&gt; +1.604.689.0322<BR>
&gt; DeepCove Labs Ltd.<BR>
&gt; 4th floor 595 Howe Street<BR>
&gt; Vancouver, Canada V6C 2T5<BR>
&gt;<BR>
&gt; boris@deepcovelabs.com<BR>
&gt;<BR>
&gt; CONFIDENTIALITY NOTICE<BR>
&gt;<BR>
&gt; This email is intended only for the persons named in the message<BR>
&gt; header. Unless otherwise indicated, it contains information that is<BR>
&gt; private and confidential. If you have received it in error, please<BR>
&gt; notify the sender and delete the entire message including any<BR>
&gt; attachments.<BR>
&gt;<BR>
&gt; Thank you.<BR>
&gt;<BR>
&gt;<BR>
&gt; _______________________________________________<BR>
&gt; seaside mailing list<BR>
&gt; seaside@lists.squeakfoundation.org<BR>
&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;<BR>
&gt;<BR>
<BR>
<BR>
<BR>
--<BR>
Lukas Renggli<BR>
www.lukas-renggli.ch<BR>
_______________________________________________<BR>
seaside mailing list<BR>
seaside@lists.squeakfoundation.org<BR>
<A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
<BR>
</FONT>
</P>

</BODY>
</HTML>