Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

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

What has changed from the demo code to the licensed code to cause this problem?



Poster: fredlongworthhighschool
Dated: Tuesday October 21 2003 - 16:38:48 BST

Any chance you can post a URL so we can see whats happening?

Poster: mlauter
Dated: Tuesday October 21 2003 - 19:14:27 BST

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