<div dir="ltr"><font color="#330033"><font size="2"><font face="tahoma,sans-serif">Fritz,<br>Here&#39;s the actual generated code for your expression:<br><br>&lt;button onclick=&quot;$(&amp;quot;external_links a&amp;quot;).click(function(){return confirm(&amp;quot;You are \&amp;quot;going\&amp;quot; to visit: &amp;quot;+ this.href)})&quot; type=&quot;submit&quot; class=&quot;submit&quot;&gt;Attach Click&lt;/button&gt;<br>
<br>This appears only on actual source code, and not any other Firebug-like debuggers which convert HTML entities to their representations.<br></font></font></font><div style="margin: 2em 0pt;" name="sig_83fa755cf9">Cheers,<br>

Avi.</div><div class="gmail_quote">On Sat, Feb 12, 2011 at 9:44 AM, Fritz Schenk <span dir="ltr">&lt;<a href="mailto:intrader.intrader@gmail.com">intrader.intrader@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<a href="http://code.google.com/p/seaside/issues/detail?id=640" target="_blank">http://code.google.com/p/seaside/issues/detail?id=640</a><br>
The problem remains and does not have to do with the source view as Julian<br>
suggests. The problem occurs because the expression: method String single<br>
quote &#39;external_links a&#39; was changed to double quotes to &quot;external_links a&quot;.<br>
Subsequent handling of the onClick: message encloses the entire construct<br>
in double quotes; hence the error as JavaScript does not accept embedded<br>
unescaped double quotes.<br>
This is a bug that needs to be address and not ignored.<br>
The analysis starts going wrong at Comment 4 and finally nailed in the coffin<br>
by comment 17<br>
This is not a bug in the Halo handling. the Seaside code is as follows:<br>
&lt;code&gt;<br>
renderContentOn: html<br>
        1 to: 5<br>
                do: [:x | html div id: &#39;external_links&#39;;<br>
<br>
                                with: [html anchor<br>
                                                callback: [x inspect];<br>
                                                 with: x]].<br>
        1 to: 5<br>
                do: [:x | html div id: &#39;\&quot;external_links\&quot;&#39;;<br>
                                 with: &#39;just some content&#39;].<br>
&quot;the code for html button onClick: is incorrectly translated resulting in<br>
code that does not work&quot;<br>
html button<br>
onClick: ((html jQuery expression: &#39;external_links a&#39;)<br>
onClick: &#39;return confirm(&quot;You are going to visit: &quot;+ this.href)&#39;);<br>
                 with: &#39;Attach Click&#39;<br>
&lt;/code&gt;<br>
<br>
When the code does not work, the result is that &#39;inform&#39; is executed without<br>
a prior execution of &#39;confirm&#39;.<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div><br></div>