Hi there,
Anyone know of a workaround for when using the Dojo List Text Box or Dojo Name Text Box in IE with a onbeforeunload function? As both these controls are rendered as anchor tags with href attributes (i.e. 'links"), IE, in all its wisdom, assumes that the user has initiated a navigation away from the page, which triggers onbeforeunload. If the list items were rendered as something else, perhaps a button or even just plain text, this could be avoided.
To reproduce this effect, open the XpagesExt.nsf demo database to the Extended Form Controls page in IE, then using the developer tools, type something like this into the script console:
window.onbeforeunload = function(e){return "this is a navigation warning string";}
After doing so, clicking on any of the list items to delete it will bring up the 'leaving page' dialog.
Anyone have any idea how to stop this?
Rich