<div dir="ltr"><font color="#330033"><font size="2"><font face="tahoma,sans-serif">Fritz,<br>Here's the actual generated code for your expression:<br><br><button onclick="$(&quot;external_links a&quot;).click(function(){return confirm(&quot;You are \&quot;going\&quot; to visit: &quot;+ this.href)})" type="submit" class="submit">Attach Click</button><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"><<a href="mailto:intrader.intrader@gmail.com">intrader.intrader@gmail.com</a>></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 'external_links a' was changed to double quotes to "external_links a".<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>
<code><br>
renderContentOn: html<br>
1 to: 5<br>
do: [:x | html div id: 'external_links';<br>
<br>
with: [html anchor<br>
callback: [x inspect];<br>
with: x]].<br>
1 to: 5<br>
do: [:x | html div id: '\"external_links\"';<br>
with: 'just some content'].<br>
"the code for html button onClick: is incorrectly translated resulting in<br>
code that does not work"<br>
html button<br>
onClick: ((html jQuery expression: 'external_links a')<br>
onClick: 'return confirm("You are going to visit: "+ this.href)');<br>
with: 'Attach Click'<br>
</code><br>
<br>
When the code does not work, the result is that 'inform' is executed without<br>
a prior execution of 'confirm'.<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>