Hi,
I posted earlier about a conflict I was having. In this case, the menu fails but the other script works. You can see a super stripped down version of my web page here:
http://www.monmouth.com/~jkramer/test.htm
If anyone can help I'd really appreciate it!
Thanks!
Javascript Conflict - PLEASE HELP - example included
Hi Kramer,
First thing I'd suggest is to try putting the two lines that load the menuing system:
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
into the <BODY> section. You currently have them at the end of your <HEAD> section, and it seems that many of the posts in these forums mention clearing up various problems by putting these lines in the <BODY>. In fact, all of the examples I have looked at on the Milonic website put these lines in the <BODY>. I recall reading somewhere that recent versions make placing these lines in the <BODY> unnecessary, but it still seems to be the mwthod of choice for users and examples alike.
If that doesn't work, you'll have to check for direct conflicts; I'd start with global variable definitions.
Good Luck,
-- Kevin
First thing I'd suggest is to try putting the two lines that load the menuing system:
<SCRIPT language=JavaScript src="menu_array.js" type=text/javascript></SCRIPT>
<SCRIPT language=JavaScript src="mmenu.js" type=text/javascript></SCRIPT>
into the <BODY> section. You currently have them at the end of your <HEAD> section, and it seems that many of the posts in these forums mention clearing up various problems by putting these lines in the <BODY>. In fact, all of the examples I have looked at on the Milonic website put these lines in the <BODY>. I recall reading somewhere that recent versions make placing these lines in the <BODY> unnecessary, but it still seems to be the mwthod of choice for users and examples alike.
If that doesn't work, you'll have to check for direct conflicts; I'd start with global variable definitions.
Good Luck,
-- Kevin
I did try moving the references to the menu all over the document. Didn't work.
I should also add that I tried to find overlapping variables. I gave a cursory look (i'm not really a developer by any means), and only found the variable "lyr" in both. I then changed every occurrence of lyr in the other script to "lyrx," which you see if you look at my example page.
I suppose I could open the scripts in Visual Studio or something, but I'm not really sure what I'm looking for.
I should also add that I tried to find overlapping variables. I gave a cursory look (i'm not really a developer by any means), and only found the variable "lyr" in both. I then changed every occurrence of lyr in the other script to "lyrx," which you see if you look at my example page.
I suppose I could open the scripts in Visual Studio or something, but I'm not really sure what I'm looking for.
Unfortunately we're both in the same boat, then. It's not all other JS that fails with the menu, so I haven't been able to find anything common. Have some messages in to Andy about the problems, but he's going to be busy with 4.0 development when he gets back. Hopefully something will fall into place there.
John