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
'unspecified error' when prompting users to navigate away
- fredlongworthhighschool
- Mega Advanced
- Posts: 362
- Joined: Fri Jun 27, 2003 11:34 am
- Location: Manchester, England.
- Contact: