Henry,<br><br>Could you post the generated HTML source containing the submit button? That might help.<br><br>I just checked on Internet Explorer 7 and reconfirmed that confirmation is working correctly for me. Are you using IE6 or IE7? I don't have IE6 on my laptop, but I can have another guy test IE6 if that's where you're having the problem. However, it really should work. The JS code generated by Jifty is like this:
<br><br>if(!confirm('Are you sure you wish to cancel any changes?')) { Event.stop(event); return false; }<br><br>The "return false" is the best (pretty much universally) supported solution for stopping the default submit behavior. However, Jifty goes ahead and uses
Event.stop(event) just to be extra thorough. However, if it's not working for you, the HTML should show the problem.<br><br>Cheers,<br>Andrew<br><br><div><span class="gmail_quote">On 8/16/07, <b class="gmail_sendername">
Henry Baragar</b> <<a href="mailto:Henry.Baragar@instantiated.ca">Henry.Baragar@instantiated.ca</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br><br>Has anyone else observed a problem with IE where the Cancel button on a<br>confirmation box acts as a "OK" button and causes the action to be executed?<br><br>I have in my code:<br><br>Jifty->web->link(
<br> label => "Delete",<br> url => "/delete/customer_user/$seq",<br> onclick => {confirm => "Delete $name?"},<br> )<br><br>This code works as expected in Firefox and Opera. But in IE, the action is
<br>executed (ie. the user is deleted) regards of what the user does.<br><br>Does anybody know why this is happening in IE? Does anyone know of a fix or a<br>work around?<br><br>Regards,<br>Henry<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>