<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; "><code></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"></code></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>> To: seaside@lists.squeakfoundation.org<br>> From: intrader.intrader@gmail.com<br>> Date: Fri, 4 Feb 2011 03:55:28 +0000<br>> Subject: [Seaside] Re: I would like to attach an onClick event according to<br>> <br>> Robert, thanks - what I am trying to do is translate the following article's <br>> examples to Seaside.<br>> http://www.ibm.com/developerworks/library/x-ajaxjquery.html<br>> <br>> The first example works in javascript.<br>> <br>> And yes, this is contrived and I could generate the onClick events while <br>> rendering.<br>> <br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br></div>                                            </body>
</html>