<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<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>Fair enough! Just wanted to make sure I wasn't overlooking an obvious approach.<BR>
<BR>
-Boris (via BlackBerry)<BR>
<BR>
----- Original Message -----<BR>
From: seaside-bounces@lists.squeakfoundation.org &lt;seaside-bounces@lists.squeakfoundation.org&gt;<BR>
To: Seaside - general discussion &lt;seaside@lists.squeakfoundation.org&gt;<BR>
Sent: Thu Aug 19 13:22:40 2010<BR>
Subject: Re: [Seaside] jQuery expressions<BR>
<BR>
On 19 August 2010 22:15, Boris Popov, DeepCove Labs (SNN)<BR>
&lt;boris@deepcovelabs.com&gt; wrote:<BR>
&gt; Ah, wonderful, thanks. Are there any more examples available somewhere<BR>
&gt; showing generic application of javascript generation in Smalltalk? Not<BR>
&gt; jQuery, specifically, but rather Javascript-Core et al, say,<BR>
&gt;<BR>
&gt; 'return val != &quot;&quot;' asFunction: #('val')<BR>
<BR>
That's kind of hard to do.<BR>
<BR>
I usually suggest to try to factor out more complicated functions to<BR>
an external Javascript file and just call them from Seaside. The code<BR>
generation is really not designed for arbitrary expressions, although<BR>
that would be an interesting project.<BR>
<BR>
Lukas<BR>
<BR>
<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; -----Original Message-----<BR>
&gt; From: seaside-bounces@lists.squeakfoundation.org on behalf of Lukas Renggli<BR>
&gt; Sent: Thu 8/19/2010 9:12 PM<BR>
&gt; To: Seaside - general discussion<BR>
&gt; Subject: Re: [Seaside] jQuery expressions<BR>
&gt;<BR>
&gt; html jQuery new alias: 'el'; closest: 'div.row'; find: 'div.status';<BR>
&gt; find: 'p'; hide; end; find: 'p.value'; show; asFunction: #('el')<BR>
&gt;<BR>
&gt; On 19 August 2010 22:06, Boris Popov, DeepCove Labs (SNN)<BR>
&gt; &lt;boris@deepcovelabs.com&gt; wrote:<BR>
&gt;&gt; How would I go about expressing the following in Smalltalk,<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&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;&gt;         asFunction: #('el')<BR>
&gt;&gt;<BR>
&gt;&gt; I can't seem to figure out a way of instantiating JQueryInstance that<BR>
&gt;&gt; would<BR>
&gt;&gt; print itself as simply el or even $(el)...<BR>
&gt;&gt;<BR>
&gt;&gt; -Boris<BR>
&gt;&gt;<BR>
&gt;&gt; --<BR>
&gt;&gt; +1.604.689.0322<BR>
&gt;&gt; DeepCove Labs Ltd.<BR>
&gt;&gt; 4th floor 595 Howe Street<BR>
&gt;&gt; Vancouver, Canada V6C 2T5<BR>
&gt;&gt;<BR>
&gt;&gt; boris@deepcovelabs.com<BR>
&gt;&gt;<BR>
&gt;&gt; CONFIDENTIALITY NOTICE<BR>
&gt;&gt;<BR>
&gt;&gt; This email is intended only for the persons named in the message<BR>
&gt;&gt; header. Unless otherwise indicated, it contains information that is<BR>
&gt;&gt; private and confidential. If you have received it in error, please<BR>
&gt;&gt; notify the sender and delete the entire message including any<BR>
&gt;&gt; attachments.<BR>
&gt;&gt;<BR>
&gt;&gt; Thank you.<BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;&gt; _______________________________________________<BR>
&gt;&gt; seaside mailing list<BR>
&gt;&gt; seaside@lists.squeakfoundation.org<BR>
&gt;&gt; <A HREF="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</A><BR>
&gt;&gt;<BR>
&gt;&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt;<BR>
&gt; --<BR>
&gt; Lukas Renggli<BR>
&gt; www.lukas-renggli.ch<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>
&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>
</FONT>
</P>

</BODY>
</HTML>