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:30
Error when trying to use menus for the first time
Poster: zinner
Dated: Tuesday October 4 2005 - 21:55:40 BST
I am new to Milonic menus but not to HTML, javascript, coding, etc.
I copied an existing menu (set up by someone else and currently in use) but when I try to use it I get the error: "o$ is not defined" in milonic_src.js.
This is the code at the top of my page:
Code:
<html>
<head>
<title>just testingtitle>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' type='text/css' href='IE.css'>
<SCRIPT language=JavaScript src="menu/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=menu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu/menu_data.js" type=text/javascript></SCRIPT>
</head>
<head>
<title>just testingtitle>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel='stylesheet' type='text/css' href='IE.css'>
<SCRIPT language=JavaScript src="menu/milonic_src.js" type=text/javascript></SCRIPT>
<script language=JavaScript>
if(ns4)_d.write("<scr"+"ipt language=JavaScript src=menu/mmenuns4.js><\/scr"+"ipt>");
else _d.write("<scr"+"ipt language=JavaScript src=menu/mmenudom.js><\/scr"+"ipt>");
</script>
<SCRIPT language=JavaScript src="menu/menu_data.js" type=text/javascript></SCRIPT>
</head>
Any ideas what could be causing this? Thanks in advance for any help.
Poster: John
Dated: Wednesday October 5 2005 - 22:19:54 BST
We need more than that snip. Got a URL we can see?
Poster: zinner
Dated: Thursday October 6 2005 - 22:40:33 BST
Unfortunately, I do not have a URL yet.
Since the error is in milonic_src.js I was hoping someone (Milonic tech support?) would know what the variable o$ is supposed to get set to and what could cause that assignment not to happen.
Poster: John
Dated: Thursday October 6 2005 - 22:53:47 BST
Could be a million things - script bug (but I haven't seen this one before), bad download, bad/improper upload to server, page layout error, CSS conflict, typo, etc., etc.
Speaking of typos, you have...
Quote:
<title>just testingtitle>
You're missing a </ before the closing title. Not being picky, just pointing out it's easy to do, we all do it, and there could be others.
If you can get a full test page up it would really help.