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:09

My javascript pop-up script no longer works with Milonic.

Poster: chill
Dated: Friday September 26 2003 - 21:05:33 BST

My pop-up script no longer works with Milonic.


I have a simple link on this page called "HELP" beside the GEOGRAPHICAL AREA section of the form. The link calls a javascript pop-up function.

Here is the javascript for the popup:

<script language="JavaScript" type="text/javascript">
function popup(url, name, width, height)

here is the link:

<a href="javascript:popup('help_popup.cfm', 'Win1', 500, 400);">HELP</a>

This used to work great!

However, since putting the vertical menu on this page, the script doesn't work. If you use Netscape and do "javascript:" in the URL, it gives the following error message:

JavaScript Error:, line 16:

_m[_mnu] has no properties.

I don't get it.

Please help asap.


Poster: DMLCo
Dated: Friday September 26 2003 - 21:32:16 BST

Milonic also uses popup() as the name of one of it's functions.

Rename your function to popme or newwin or whatever, and it should work.



Poster: chill
Dated: Friday September 26 2003 - 21:37:37 BST

Thank you ... that fixed it ... too bad this wasn't in any documentation.



Poster: Ruth
Dated: Friday September 26 2003 - 21:41:07 BST

Is it really the use of that in the menu that's doing it? It would seem if that's the case that the thousands of websites out there who use that term would have conflicts. Just an idea, if that's the case, wouldn't it be better to change the name of the function in the menu rather than have it have that problem with however many hundreds of sites that may already have that function on them?


Poster: kevin3442
Dated: Saturday September 27 2003 - 2:08:39 BST

The same popup() function was in v3 (where I had most of my experience a while back). And although the same issue came up now and then, it was pretty rare. You have a good point just the same. Perhaps they left it named popup() to keep v5 backwardly compatible with developers who used the Milonic popup() function for their own purposes? Just a hunch.