<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>My understanding is that javascript doesn't differentiate between double and single quotes.<br><br>Either pass a string in as the event (generated or static from the server), or simply import your code into the head of the page.<br><br>Seaside provides a great way to generate javascript, as per Boris' responses.<br><br>I personally use the jQuery classes almost exclusively so I don't have to look at raw javascript often.<br><br>Without further examination (I'm on my phone), you'll have to allow someone else to help you right now.<br><br>RS<br><br>> To&#58; seaside&#64;lists.squeakfoundation.org<br>> From&#58; intrader.intrader&#64;gmail.com<br>> Date&#58; Fri, 4 Feb 2011 20&#58;05&#58;36 &#43;0000<br>> Subject&#58; &#91;Seaside&#93; Re&#58; I would like to attach an onClick event according to<br>> <br>> Thanks Robert <br>> I understand what it does - however it does it incorrectly. The Seaside onClick <br>> handler surrounds the text in double quotes, which invalidates the single quotes <br>> in &#60;snippet&#62;expression&#58;&#39;external_links a&#39;&#60;/snippet&#62;<br>> &#60;bad code&#62;<br>> &#60;button onclick&#61;&#34;&#36;&#40;&#34;&#35;external_links a&#34;&#41;.click&#40;function&#40;&#41;&#123;return confirm&#40;&#34;You are <br>> going to visit&#58; &#34;&#43; this.href&#41;&#125;&#41;&#34; type&#61;&#34;submit&#34; class&#61;&#34;submit&#34;&#62;Attach <br>> Click&#60;/button&#62;<br>> &#60;/bad code&#62;<br>> My question is how to use Seaside to express the IBM example&#39;s code in the most <br>> direct and DRY way.<br>> <br>> <br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside&#64;lists.squeakfoundation.org<br>> http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                               </body>
</html>