Fritz,<div>The difference is pointed out below.<br><br><div class="gmail_quote">On Sat, Feb 5, 2011 at 2:42 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks John, unfortunately your code also suffers from the same problem<br>
&lt;requirement&gt;<br>
&lt;button onClick=&quot;$(&#39;#external_links a&#39;).click(function() {<br>
<div class="im">    return confirm(&#39;You are going to visit: &#39; + this.href);<br>
</div>});&quot; type=&quot;submit&quot; class=&quot;submit&quot;&gt;Attach Click&lt;/button&gt;<br>
<br>
&quot;The confirm returns true or false controlling the action of the anchor. Very<br>
simple to say this in JavaScript. See <a href="http://jsbin.com/imuka5/2" target="_blank">http://jsbin.com/imuka5/2</a>&quot;<br>
&lt;/requirement&gt;<br></blockquote><div> </div><div>I typed it out using alert, substitute confirm and it works as expected. </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
Not so simple in Seaside as we need to work around the double quotes that the<br>
onClick message uses.<br>
<br>
<br>
&lt;generated Seaside source&gt;<br>
&lt;button onclick=&quot;$(&quot;#external_links a&quot;).click(function(){return confirm<br>
(&quot;Your are going to visit: &quot; + this.href)})&quot; type=&quot;submit&quot;<br>
<div class="im">class=&quot;submit&quot;&gt;Attach Click&lt;/button&gt;<br>
</div>&lt;/generated Seaside source&gt;<br>
<br>
See the nested double quotes.<br></blockquote><div><br></div><div>These have nothing to do with it. I tested what I sent, and it works....</div><div>The real reason is below.... </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
By the way, your code generates exactly the same html as<br>
&lt;exactly same html as your code&gt;<br>
<div class="im">onClick: ((html jQuery expression: &#39;external_links a&#39;)<br>
</div>        onClick: &#39;return confirm(&quot;You are going to visit: &quot;+ this.href)&#39;);<br>
                 with: &#39;Attach Click&#39;<br>
&lt;/exactly same html as your code&gt;<br>
Sorry, and thanks again<br></blockquote><div><br></div><div>Not exactly. Add the # before external_links a and you will get the desired result. It is not about the quotes.</div><div>John </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><div></div><div class="h5"><br>
<br>
<br>
<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>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><a href="http://john-mckeon.us" target="_blank">http://john-mckeon.us</a><br>
</div>