"_d" is undefined
-
- Advanced
- Posts: 14
- Joined: Sat May 01, 2004 7:55 pm
"_d" is undefined
Hi all
Been using the menu with great success on a website, but now I've come to setup a new website and use the menu, and I get an error "_d is undefined".
As far as I can tell, the setup is exactly the same so it should work. I've also downloaded and tested a new sample menu and this too fails. I understand that this may mean that it is a site issue, but I'm not too sure as to where this may originate from.
<SCRIPT language=JavaScript src="/_menu1/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript> _d.write("<scr"+"ipt language=JavaScript src=/_menu1/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="/_menu1/menu_data.js" type=text/javascript></SCRIPT>
Can anyone help?
Been using the menu with great success on a website, but now I've come to setup a new website and use the menu, and I get an error "_d is undefined".
As far as I can tell, the setup is exactly the same so it should work. I've also downloaded and tested a new sample menu and this too fails. I understand that this may mean that it is a site issue, but I'm not too sure as to where this may originate from.
<SCRIPT language=JavaScript src="/_menu1/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript> _d.write("<scr"+"ipt language=JavaScript src=/_menu1/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="/_menu1/menu_data.js" type=text/javascript></SCRIPT>
Can anyone help?
most likely milonic_src.js wasn't executed; can you directly download the file from http://yoursitedomain/_menu1/milonic_src.js?
-
- Super Advanced
- Posts: 72
- Joined: Fri Jul 01, 2005 3:04 pm
Code: Select all
<SCRIPT language=JavaScript src="/_menu1/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=/_menu1/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=/_menu1/mmenudom.js><\/scr"+"ipt>"); </script>
<SCRIPT language=JavaScript src="/_menu1/menu_data.js" type=text/javascript></SCRIPT>
-
- Advanced
- Posts: 14
- Joined: Sat May 01, 2004 7:55 pm
-
- Super Advanced
- Posts: 72
- Joined: Fri Jul 01, 2005 3:04 pm
-
- Super Advanced
- Posts: 72
- Joined: Fri Jul 01, 2005 3:04 pm
-
- Advanced
- Posts: 14
- Joined: Sat May 01, 2004 7:55 pm
-
- Super Advanced
- Posts: 72
- Joined: Fri Jul 01, 2005 3:04 pm
As Slack noted a url would help a lot more. So, take this with a grain of salt.
I remember reading someplace in a post something about the _ in file names and the menu not liking it in some instances. I noticed you had the _menu as the folder name. Not sure if that has anything to do with it, and I can't remember the full context of the post about the _ and can't find it now
Just thought I'd mention it, though it may be totally out in left field [and it may have been a particular release which got fixed later]
Ruth
I remember reading someplace in a post something about the _ in file names and the menu not liking it in some instances. I noticed you had the _menu as the folder name. Not sure if that has anything to do with it, and I can't remember the full context of the post about the _ and can't find it now

Just thought I'd mention it, though it may be totally out in left field [and it may have been a particular release which got fixed later]
Ruth
Hi Big J,
_d is shorthand for the javascript document object. In js coding, it is common to define such abbreviations for objects that you plan to use a lot, so that it cuts down on the amount of code and the resulting file size (e.g., typing _d several hundred times instead of document).
In the milonic system, _d is defined in milonic_src.js. So, the likely explanations for _d being undefined are: (1) milonic_src.js is not loading, as suggested by others in this thread, or (2) milonic_src.js is loading, but the file is incomplete or otherwise corrupted. To help you figure out which, we would need a URL to a test page.
Cheers,
Kevin
_d is shorthand for the javascript document object. In js coding, it is common to define such abbreviations for objects that you plan to use a lot, so that it cuts down on the amount of code and the resulting file size (e.g., typing _d several hundred times instead of document).
In the milonic system, _d is defined in milonic_src.js. So, the likely explanations for _d being undefined are: (1) milonic_src.js is not loading, as suggested by others in this thread, or (2) milonic_src.js is loading, but the file is incomplete or otherwise corrupted. To help you figure out which, we would need a URL to a test page.
Cheers,
Kevin