'unspecified error' when prompting users to navigate away

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
mlauter
Beginner
Beginner
Posts: 2
Joined: Mon Oct 20, 2003 4:35 pm
Contact:

'unspecified error' when prompting users to navigate away

Post by mlauter »

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
User avatar
fredlongworthhighschool
Mega Advanced
Mega Advanced
Posts: 362
Joined: Fri Jun 27, 2003 11:34 am
Location: Manchester, England.
Contact:

Post by fredlongworthhighschool »

Any chance you can post a URL so we can see whats happening?
Andy Davis
Web Designer & Smartboard Manager

Fred Longworth High School, Manchester, England.
mlauter
Beginner
Beginner
Posts: 2
Joined: Mon Oct 20, 2003 4:35 pm
Contact:

Post by mlauter »

Yeah, but it'll be later today when I get a chance. I'll strip the code down to make it very simple.
Post Reply