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

Incompatibility with Google Map?


Poster: jcorning
Dated: Sunday February 4 2007 - 19:00:08 GMT

I've been very happy with the Milonic menu, but today I tried to add a Google Map to my project. When I include the <script> tag pointing to the Google Map library, I get an error when the Milonic menu tries to load: Microsoft JScript runtime error: 'ns4' is undefined.

Is there an incompatibility here, or am I doing something wrong?


Poster: Andy
Dated: Monday February 5 2007 - 15:34:27 GMT

The menu should work fine with Google Maps, has been done in the past.

Looks like a file location problem to me


Poster: jcorning
Dated: Monday February 5 2007 - 17:47:09 GMT

What do you mean by "file location problem"?


Poster: Andy
Dated: Monday February 5 2007 - 18:31:28 GMT

If you see the error "'ns4' is undefined." then this must mean that the file milonic_src.js has not been executed because the ns4 variable is set to either true or false within that file.

So, my guess is that the browser cannot find the menu code files and this is the reason for the error


Poster: jcorning
Dated: Monday February 5 2007 - 19:28:25 GMT

Why would adding a <script> tag referencing the Google Maps API cause it to stop executing the Milonic script? When I add the Google reference I get this error; when I remove it the Milonic menu works fine.


Poster: John
Dated: Monday February 5 2007 - 20:29:26 GMT

How 'bout a URL so we can see what's going on?


Poster: jcorning
Dated: Tuesday February 6 2007 - 12:12:26 GMT

The URL is http://www.x4gl.com

But now it works. I put the <script> tag back in that pointed to the Google library, but in a slightly different position, and then compiled the VB.NET project in RELEASE mode. I'm not sure which change made the difference, but when I installed it on my hosting site everything works.

It still bombs when I run it in debug mode on my development PC, but I guess I can live with that.

Thanks for your suggestions!