That HTML works correctly for me on IE7, I don't know what's going on to make it continue even if you click Cancel. Returning false for any event handler in JavaScript should be enough to stop the default action on practically any browser that supports JavaScript.
<br><br>Obviously, something isn&#39;t working, but I don&#39;t know what it is. Jifty&#39;s doing the right thing here.<br><br>I just created a test page empty but for that HTML and it didn&#39;t attempt to jump to the other page after clicking the link when I hit Cancel on the dialog, but did jump when I hit OK the second time.
<br><br><div><span class="gmail_quote">On 8/16/07, <b class="gmail_sendername">Henry Baragar</b> &lt;<a href="mailto:Henry.Baragar@instantiated.ca">Henry.Baragar@instantiated.ca</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Andrew,<br><br>Thanks for looking into this for me.<br><br>On Thursday, August 16 2007 12:24 pm, Andrew Sterling Hanenkamp wrote:<br>&gt; Henry,<br>&gt;<br>&gt; Could you post the generated HTML source containing the submit button? That
<br>&gt; might help.<br>&gt;<br>&gt; I just checked on Internet Explorer 7 and reconfirmed that confirmation is<br>&gt; working correctly for me. Are you using IE6 or IE7? I don&#39;t have IE6 on my<br>&gt; laptop, but I can have another guy test IE6 if that&#39;s where you&#39;re having
<br>&gt; the problem. However, it really should work. The JS code generated by Jifty<br>&gt; is like this:<br>&gt;<br>The miniumum version for IE is 7.&nbsp;&nbsp;I am seeing the failures using IE<br>7.0.5730.11 on Windows XP Professional 2002 SP 2 running in VMWare on Linux.
<br><br>&gt; if(!confirm(&#39;Are you sure you wish to cancel any changes?&#39;)) {<br>&gt; Event.stop(event);<br>&gt; return false; }<br>&gt;<br><br>From IE7:<br><br>&lt;a href=&quot;/delete/customer_user/3&quot; onclick=&quot;if(!confirm(&#39;Delete del me?&#39;))
<br>return false;&quot;&gt;Delete&lt;/a&gt;<br><br>Has the code been changed since 0.704220?<br><br>Henry<br><br>&gt; The &quot;return false&quot; is the best (pretty much universally) supported solution<br>&gt; for stopping the default submit behavior. However, Jifty goes ahead and
<br>&gt; uses Event.stop(event) just to be extra thorough. However, if it&#39;s not<br>&gt; working for you, the HTML should show the problem.<br>&gt;<br>&gt; Cheers,<br>&gt; Andrew<br>&gt;<br>&gt; On 8/16/07, Henry Baragar &lt;
<a href="mailto:Henry.Baragar@instantiated.ca">Henry.Baragar@instantiated.ca</a>&gt; wrote:<br>&gt; &gt; Hello all,<br>&gt; &gt;<br>&gt; &gt; Has anyone else observed a problem with IE where the Cancel button on a<br>&gt; &gt; confirmation box acts as a &quot;OK&quot; button and causes the action to be
<br>&gt; &gt; executed?<br>&gt; &gt;<br>&gt; &gt; I have in my code:<br>&gt; &gt;<br>&gt; &gt; Jifty-&gt;web-&gt;link(<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; label =&gt; &quot;Delete&quot;,<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; url&nbsp;&nbsp; =&gt; &quot;/delete/customer_user/$seq&quot;,
<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; onclick&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&gt; {confirm =&gt; &quot;Delete $name?&quot;},<br>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br>&gt; &gt;<br>&gt; &gt; This code works as expected in Firefox and Opera.&nbsp;&nbsp;But in IE, the action<br>&gt; &gt; is
<br>&gt; &gt; executed (ie. the user is deleted) regards of what the user does.<br>&gt; &gt;<br>&gt; &gt; Does anybody know why this is happening in IE?&nbsp;&nbsp;Does anyone know of a fix<br>&gt; &gt; or a<br>&gt; &gt; work around?
<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt; Henry<br>&gt; &gt; _______________________________________________<br>&gt; &gt; jifty-devel mailing list<br>&gt; &gt; <a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org
</a><br>&gt; &gt; <a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>_______________________________________________<br>jifty-devel mailing list
<br><a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br><a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
</blockquote></div><br>