Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:02
'unspecified error' when prompting users to navigate away
Poster: mlauter
Dated: Monday October 20 2003 - 17:10:12 BST
Here's the setup:
I'm using the menu in a frame.
I have a page that tracks user entry and if they try to leave without saving, I use the windows prompt to let them know their changes aren't saved. The prompt offers an Ok or Cancel button.
Here's the code:
function BodyBeforeUnload()
{
if (FChanged)
event.returnValue = 'You have made changes to the data on this.\nIf you chose to navigate away your changes will not be saved.';
}
(code is artificially wrapped by the forum)
Before we purchased the licensed menu code this didn't present any problems. However, with the licensed menu we get a javascript "unspecified error" when the user clicks "cancel", and when the user clicks "ok" the dialog appears twice.
The error seems to occur at different spots in mmenudom.js code for different users. On my workstation I get the error on line 16 at a call to _gm.click().
What has changed from the demo code to the licensed code to cause this problem?
Thanks,
Mark