[Seaside] Re: I would like to attach an onClick event according to
Robert Sirois
watchlala at hotmail.com
Fri Feb 4 19:53:24 UTC 2011
In string literals, single quotes are escaped by a preceding single quote.
What you should do is search for some Smalltalk examples and Seaside tutorials. I believe there are other mailing lists for Smalltalk.
RS
> To: seaside at lists.squeakfoundation.org
> From: intrader.intrader at gmail.com
> Date: Fri, 4 Feb 2011 19:48:32 +0000
> Subject: [Seaside] Re: I would like to attach an onClick event according to
>
> Thank you Boris
>
> Most informative of other ways to do things.
>
> In my case, I want to translate
> <code>
> $('#external_links a').click(function() {
> return confirm('You are going to visit: ' + this.href);
> });
> </code>
>
> The problem I find is that Seaside incorrectly translates
>
> <code>
> html button
> onClick: ((html jQuery expression: '#external_links a') onClick: 'return
> confirm("You are going to visit: "+ this.href)');
> with: 'Attach Click'.
> </code>
>
> It has trouble with quotes as it translates the above into:
> <bad code>
> <button onclick="$("#external_links a").click(function(){return confirm("You are
> going to visit: "+ this.href)})" type="submit" class="submit">Attach
> Click</button>
> </bad code>
> As you see the quotes, they are incorrect. How do I correct this?
>
> Thanks again
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110204/bc248ba2/attachment.htm
More information about the seaside
mailing list