<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>I'll look at it when I get home, although I did send you a working example last night.<br><br>If you don't have the e-mail, it's in the list archives.<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 23&#58;19&#58;41 &#43;0000<br>> Subject&#58; &#91;Seaside&#93; Re&#58; I would like to attach an onClick event according to<br>> <br>> I agree that your are failing to see the problem. I have the most efficient way <br>> to to what I want given by the JavaScript&#58;<br>> &#60;most direct way to do this&#62;<br>> &#36;&#40;&#39;&#35;external_links a&#39;&#41;.click&#40;function&#40;&#41; &#123;<br>>     return confirm&#40;&#39;You are going to visit&#58; &#39; &#43; this.href&#41;&#59;<br>> &#125;&#41;&#59;<br>> &#60;/most direct way to do this&#62;<br>> And I can&#39;t do it in Seaside without having to take care of special requirements <br>> about strings in the click method &#40;onClick&#41;<br>> <br>> &#60;the direct way does not work&#62;<br>> html button<br>> onClick&#58; &#40;&#40;html jQuery expression&#58; &#39;&#35;external_links a&#39;&#41; onClick&#58; &#39;return <br>> confirm&#40;&#34;You are going to visit&#58; &#34;&#43; this.href&#41;&#39;&#41;&#59;<br>> with&#58; &#39;Attach Click&#39;.<br>> &#60;/the direct way does not work&#62;<br>> If does not work because the onClick message enclosed the whole argument in <br>> double quotes, sand the converts single quotes to double quotes &#40;incorrectly&#41; <br>> with the<br>> &#60;resulting incorrect javascript&#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;/resulting incorrect javascript&#41;<br>> So think about it and write it in Seaside in a short, concise, and &#39;say it in <br>> Seaside&#39; mode.<br>> &#60;I have tried&#62;<br>> &#9;html button<br>> &#9;&#9;onClick&#58; &#40;&#40;html jQuery expression&#58; selector&#41;<br>> &#9;&#9;&#9;&#9;onClick&#58; &#39;return confirm&#40;&#34;You are going to <br>> visit&#58; &#34;&#43; this.href&#41;&#39;&#41;&#59;<br>> &#9;&#9; with&#58; &#39;Attach Click&#39;<br>> &#60;/I have tried&#62;<br>> with select set to &#39;external_links a&#39;, but with the same bad result &#40;nested <br>> double quotes&#41;.<br>> Thanks<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>