<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: seaside@lists.squeakfoundation.org<br>> From: intrader.intrader@gmail.com<br>> Date: Fri, 4 Feb 2011 23:19:41 +0000<br>> Subject: [Seaside] Re: 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:<br>> <most direct way to do this><br>> $('#external_links a').click(function() {<br>> return confirm('You are going to visit: ' + this.href);<br>> });<br>> </most direct way to do this><br>> And I can't do it in Seaside without having to take care of special requirements <br>> about strings in the click method (onClick)<br>> <br>> <the direct way does not work><br>> html button<br>> onClick: ((html jQuery expression: '#external_links a') onClick: 'return <br>> confirm("You are going to visit: "+ this.href)');<br>> with: 'Attach Click'.<br>> </the direct way does not work><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 (incorrectly) <br>> with the<br>> <resulting incorrect javascript><br>> <button onclick="$("#external_links a").click(function(){return confirm("You are <br>> going to visit: "+ this.href)})" type="submit" class="submit">Attach <br>> Click</button><br>> </resulting incorrect javascript)<br>> So think about it and write it in Seaside in a short, concise, and 'say it in <br>> Seaside' mode.<br>> <I have tried><br>> 	html button<br>> 		onClick: ((html jQuery expression: selector)<br>> 				onClick: 'return confirm("You are going to <br>> visit: "+ this.href)');<br>> 		 with: 'Attach Click'<br>> </I have tried><br>> with select set to 'external_links a', but with the same bad result (nested <br>> double quotes).<br>> Thanks<br>> <br>> <br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            </body>
</html>