Issue with milonic_src.js

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Issue with milonic_src.js

Post by compbumj »

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

Code: Select all

<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.
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Issue with milonic_src.js

Post by John »

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.
John
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Post by compbumj »

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
User avatar
Ruth
 Team
 Team
Posts: 8763
Joined: Thu May 15, 2003 5:02 am
Location: Yucaipa, CA
Contact:

Post by Ruth »

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
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Post by compbumj »

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.
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Post by compbumj »

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.
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Post by compbumj »

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...
compbumj
Beginner
Beginner
Posts: 9
Joined: Mon Aug 06, 2007 6:30 pm

Post by compbumj »

Figured it out..

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

Very wierd.
Post Reply