<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
<font class="Apple-style-span" face="Tahoma" size="2">You'll just have to learn the packages. #onClick: is the method for binding click events.</font><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">In the example, they bind an alert function, so in Seaside it might look like this:</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">((html jQuery: #external_links) has: 'a') onClick: 'alert('Eeek!')'.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">Pop this onto a component... make sure you have the JQueryDeployment added to your libraries.</div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">&lt;code&gt;</div><div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-tab-span" style="white-space: pre; "><br></span></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-tab-span" style="white-space: pre; ">        </span>html div id: #external_link; style: 'height: 100px; width: 100px; background-color: red'; with: [ html anchor: 'blah' ].</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span>html button</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-tab-span" style="white-space:pre">                </span>bePush;</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-tab-span" style="white-space:pre">                </span>onClick: (((html jQuery: #external_link) has: 'a') onClick: 'alert("Eeek!")');</font></div><div><font class="Apple-style-span" face="Tahoma" size="2"><span class="Apple-tab-span" style="white-space: pre; ">                </span>with: 'Add click event'.</font></div></div><div><font class="Apple-style-span" face="Tahoma" size="2"><br></font></div><div><font class="Apple-style-span" face="Tahoma" size="2">&lt;/code&gt;</font></div><div style="font-family: Tahoma; font-size: 10pt; "><br></div><div style="font-family: Tahoma; font-size: 10pt; ">RS</div><div style="font-family: Tahoma; font-size: 10pt; "><br>&gt; To: seaside@lists.squeakfoundation.org<br>&gt; From: intrader.intrader@gmail.com<br>&gt; Date: Fri, 4 Feb 2011 03:55:28 +0000<br>&gt; Subject: [Seaside] Re: I would like to attach an onClick event according to<br>&gt; <br>&gt; Robert, thanks - what I am trying to do is translate the following article's <br>&gt; examples to Seaside.<br>&gt; http://www.ibm.com/developerworks/library/x-ajaxjquery.html<br>&gt; <br>&gt; The first example works in javascript.<br>&gt; <br>&gt; And yes, this is contrived and I could generate the onClick events while <br>&gt; rendering.<br>&gt; <br>&gt; <br>&gt; _______________________________________________<br>&gt; seaside mailing list<br>&gt; seaside@lists.squeakfoundation.org<br>&gt; http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div>                                               </body>
</html>