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

Issue with milonic_src.js


Poster: compbumj
Dated: Monday August 6 2007 - 18:42:00 BST

I am noticing that some of my previous JS code is no longer functioning when I put this in my head tag.

Code:
<script type="text/javascript" src="/mm_menu/js/milonic_src.js"></script>


If I remove this, my menu no longer functions (obviously) but my previous JS code does function.

Is there anything in this milonic_src.js file that I should be aware of that might be interfering with my custom code? does it attach to certain events? etc.. ?

Let me know.

Re: Issue with milonic_src.js


Poster: John
Dated: Monday August 6 2007 - 19:25:37 BST

compbumj wrote:
Is there anything in this milonic_src.js file that I should be aware of that might be interfering with my custom code? does it attach to certain events? etc.. ?

Without having the foggiest idea of what is in your custom code, there's no way we can answer that.

Meanwhile, try moving the menu code calls to the first item after the body tag.


Poster: compbumj
Dated: Monday August 6 2007 - 19:55:58 BST

I had a feeling you were gonna say that... If I setup an html file with my issue, would you have a moment to test it? Or am I asking to much?

I will make it fairly drag and drop


Poster: Ruth
Dated: Tuesday August 7 2007 - 5:21:06 BST

Hi,

Posting the page would be of much more help than any explanation. At least we can then see what's up.

Is there some reason you can't put the code after the body tag? Also, there is a demo section that has something on it called set Time Out. Some kind of function to see if the menu is drawn before routines are called. I don't know if this is anything that is useful for you, since really I don't know much about it.

http://support.milonic.com/demos/

Ruth


Poster: compbumj
Dated: Wednesday August 8 2007 - 15:11:23 BST

Whats the best way to get this zip file to you?

Can I email it to one of you?

Id be willing to drop you some cash if you can assist.


Poster: compbumj
Dated: Wednesday August 8 2007 - 16:24:19 BST

var ie4=document.all
var ns6=document.getElementById&&!document.all


this is what is not working.... Hmmmmmm


ie4 is 0 and so is ns6 when I have that milon_src file included in the head tag.


Poster: compbumj
Dated: Wednesday August 8 2007 - 16:56:46 BST

Theres more involved here.. the ie4 and ns6 are global vars being set... once the event is sent to the function, ie4 and ns6 are both 0... which means the event handlers are getting interrupted...

at least thats what im thinking...


Poster: compbumj
Dated: Wednesday August 8 2007 - 17:06:41 BST

Figured it out..

The milon script tags needed to go above my custom code.

Very wierd.