<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>In string literals, single quotes are escaped by a preceding single quote.<br><br>What you should do is search for some Smalltalk examples and Seaside tutorials. I believe there are other mailing lists for Smalltalk.<br><br>RS<br><br>> To: seaside@lists.squeakfoundation.org<br>> From: intrader.intrader@gmail.com<br>> Date: Fri, 4 Feb 2011 19:48:32 +0000<br>> Subject: [Seaside] Re: I would like to attach an onClick event according to<br>> <br>> Thank you Boris<br>> <br>> Most informative of other ways to do things.<br>> <br>> In my case, I want to translate<br>> <code><br>> $('#external_links a').click(function() {<br>> return confirm('You are going to visit: ' + this.href);<br>> });<br>> </code><br>> <br>> The problem I find is that Seaside incorrectly translates <br>> <br>> <code><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>> </code><br>> <br>> It has trouble with quotes as it translates the above into:<br>> <bad code><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>> </bad code><br>> As you see the quotes, they are incorrect. How do I correct this?<br>> <br>> Thanks again<br>> <br>> _______________________________________________<br>> seaside mailing list<br>> seaside@lists.squeakfoundation.org<br>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                            </body>
</html>