<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: seaside@lists.squeakfoundation.org<br>> From: intrader.intrader@gmail.com<br>> Date: Fri, 4 Feb 2011 20:05:36 +0000<br>> Subject: [Seaside] Re: 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 <snippet>expression:'external_links a'</snippet><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>> My question is how to use Seaside to express the IBM example's code in the most <br>> direct and DRY way.<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>