Did anyone have a problem with the link javascript confirmation on IE7? <?php echo link_to('delete item', 'item/delete?id=123', 'confirm=Are you sure?') ?> => <a onclick="return confirm('Are you sure?');" href="/routed/url/to/delete/123.html">add to cart</a>
This one deletes the item no matter what you clink. I came up with the following solution. If someone has a better one please share. <script> originalConfirmFunction = window.confirm; window.confirm = function (str){ var res = originalConfirmFunction(str); if (navigator.appVersion.indexOf("MSIE") != -1) if (window.event) window.event.returnValue = res; // IE return res; } </script> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---