<div dir="ltr">Hi,<br>The double quotes seem to be a result of attributes values which are not handled correctly (i.e. double quotes converted to single quotes). This applies to attributes escaping and the jQuery+Prototype libraries.<br>


<br>Fritz - the fact that JQueryInstance outputs double quotes might be true, however there&#39;s a deeper problem here - WAHtmlAttributes inserts every attribute value as-is, without escaping / converting quotes.Therefore such erroneous code can also result from a simple onClick message passed to (html button), regardless of jQuery.<br>
<div style="margin: 2em 0pt;" name="sig_83fa755cf9">Whatever the solution may be, the resulting code must not put double 
quotes within attribute values since it is not considered standard. I&#39;ve
 filed a fix for the issue by replacing double quotes with single 
quotes, however this calls for more elaborate solution since there are 
other libraries involved.<br><br>Cheers,<br>
Avi.</div><div class="gmail_quote">On Sun, Feb 6, 2011 at 11:21 PM, Bob Arning <span dir="ltr">&lt;<a href="mailto:arning@charm.net" target="_blank">arning@charm.net</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;">


On 2/6/11 2:35 PM, Fritz Schenk wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
John, thank you for taking the time to recreate the test. It teaches me how to<br>
use Seaside more efficiently. Except for the&lt;break&gt;s it is exactly the<br>
<a href="http://jsbin.com/imuka5/2" target="_blank">http://jsbin.com/imuka5/2</a><br>
<br>
However, neither<br>
&lt;myAttach&gt;  html button<br>
<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>
<br>
        with: &#39;Fritz&#39;&#39;s Attach Click&#39;.<br>
/myAttach&gt;              <br>
or,<br>
&lt;yourAttach&gt;  html button<br>
<br>
  onClick: ( (html jQuery expression: &#39;#external_links a&#39;)<br>
<br>
  call: &#39;click&#39; with: (&#39;return confirm(&quot;You are going to visit: &quot; + this.href)&#39;<br>
asFunction));<br>
<br>
        with: &#39;My Attach Click&#39;<br>
&lt;yourAttach&gt;<br>
<br>
Work. What the small application incorrectly brings up the inspector in the<br>
callback of the anchor without output of the confirm dialog.<br>
The reason being that the above two attaches are translated into code with<br>
the same problem. The embedded double quotes are the problem.<br>
<br>
&lt;as per source in halos&gt;<br>
&lt;button onclick=&quot;$(&quot;#external_links a&quot;).click(function(){return confirm<br>
(&quot;You are going to visit: &quot;+ this.href)})&quot; type=&quot;submit&quot; class=&quot;submit&quot;&gt;<br>
Fritz&#39;s Attach Click&lt;/button&gt;<br>
&lt;button onclick=&quot;$(&quot;#external_links a&quot;).click(function(){return confirm<br>
(&quot;You are going to visit: &quot; + this.href)})&quot; type=&quot;submit&quot; class=&quot;submit&quot;&gt;<br>
My Attach Click&lt;/button&gt;<br>
&lt;as per source in halos&gt;<br>
<br>
Notice that the onClick:... and call:... messages generate exactly the same code.<br>
<br>
I have reported this problem.<div><br>
<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
<br>
</div></blockquote>
Fritz,<br>
<br>
Not sure where you are seeing the embedded double quotes, but if I run this code and View Source in my browser (Safari), it looks like Seaside has sent this:<br>
<br>
&lt;button onclick=&quot;$(&amp;quot;#external_links a&amp;quot;).click(function(){return confirm(&amp;quot;You are going to visit: &amp;quot;+ this.href)})&quot; type=&quot;submit&quot; class=&quot;submit&quot;&gt;Fritz&#39;s Attach Click&lt;/button&gt;<br>



&lt;button onclick=&quot;$(&amp;quot;#external_links a&amp;quot;).click(function(){return confirm(&amp;quot;You are going to visit: &amp;quot; + this.href)})&quot; type=&quot;submit&quot; class=&quot;submit&quot;&gt;My Attach Click&lt;/button&gt;<br>



<br>
no errors noted in the error console, so I&#39;m not sure where the error is happening for you.<br>
<br>
Also, (see attached snapshot) when I click on one of the anchors, I see the confirm dialog. If I click Cancel, the dialog goes away and that&#39;s it. If I click OK, then the callback is run (thus opening an inspector) after dismissing the dialog. Note sure why this doesn&#39;t meet your expectations.<br>



<br>
Cheers,<br><font color="#888888">
Bob<br>
<br>
</font><br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org" target="_blank">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>
<br></blockquote></div><br></div>