Categories | Question details Back To List | ||
dhtmlxGrid addRow trigger onBeforeUnload in IE7 Hi, I capture onBeforeUnload semi-event on my application to warning the user to prevent data loss. window.onbeforeunload = function() { if (myModifiedData()) { return "Data will lost. Are you sure?"; } when I press a button that add a row in a dhtmlXGrid myGrid.addRow(recuperaUniqueID('nou-'), '---''); the onBeforeUnload event is tiggered in IE 7, in Firefox run as expected. Any suggestion? Kind Regards Àlex Corretgé Answer posted by Support on Mar 09, 2009 03:57 Most probably you are using link similar to next , to add new row <a href="javascript:some_action()">add row </a> IE trigger onBeforeUnload event for each click on link, without relation is link navigates outside of script, or contains just a javascript command. To resolve problem you can change link to next syntax <a href="#" onclick="some_action()">add row </a> |