<!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 != ""' 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>
<boris@deepcovelabs.com> wrote:<BR>
> How would I go about expressing the following in Smalltalk,<BR>
><BR>
> 'el.closest("div.row").find("div.status").find("p").hide().end().find("p.valid").show()'<BR>
> asFunction: #('el')<BR>
><BR>
> I can't seem to figure out a way of instantiating JQueryInstance that would<BR>
> print itself as simply el or even $(el)...<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>
> 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>
><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>