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"><<a href="mailto:intrader.intrader@gmail.com">intrader.intrader@gmail.com</a>></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>
<requirement><br>
<button onClick="$('#external_links a').click(function() {<br>
<div class="im"> return confirm('You are going to visit: ' + this.href);<br>
</div>});" type="submit" class="submit">Attach Click</button><br>
<br>
"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>"<br>
</requirement><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>
<generated Seaside source><br>
<button onclick="$("#external_links a").click(function(){return confirm<br>
("Your are going to visit: " + this.href)})" type="submit"<br>
<div class="im">class="submit">Attach Click</button><br>
</div></generated Seaside source><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>
<exactly same html as your code><br>
<div class="im">onClick: ((html jQuery expression: 'external_links a')<br>
</div> onClick: 'return confirm("You are going to visit: "+ this.href)');<br>
with: 'Attach Click'<br>
</exactly same html as your code><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>