View Full Version : All Levels Navigational Menu (v1.4) and Ajax includes script??

09-28-2008, 01:56 PM
1) Script Title: All Levels Navigational Menu (v1.4)

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

3) Describe problem: I am using the Ajax includes script to call an afile that uses the All Levels Navigational Menu 1.4. It works great in Safari, Firefox, a little wacky in Camino BUT doesn't work at ALL in IE 7. I get an error in the IE 7 browser as follows.

Line: 179
Char: 1
Error: 'ddlevelsmenu' is undefined
URL: http://www.eastonsd.org/

I checked my index.htm file on line 179 which is as follows:

<div align="left">
<script type="text/javascript">
****LINE 179****<tr>
<td width="5">*</td>
<td width="200" valign="middle"><div align="center"><img src="EASDFILES/spacerlong.gif" height="10" width="1"><br>

I know the All Levels Navigational Menu (v1.4) works in Windows IE 7 because it works when I go to Dynamic Drive's site at http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/index.htm

But it doesn't work on my school district website.

Can anyone give me a clue as to what is wrong? I'm not a programmer, so please go easy... thanks in advance


09-28-2008, 03:51 PM
After further review... It appears that when the IE 7 page hits the line after
<script type="text/javascript">

It doesn't know what to do..... The afile3.htm is the file that includes the All Levels Navigational Menu (v1.4) script...

Is there code I should add to ddlevelsmenu-base.css or ddlevelsmenu-topbar.css?

Grasping at straws here.... Thanks for any help you can offer..

09-28-2008, 04:14 PM
I have a fix.... sort of..... I had to add

<script type="text/javascript" src="/ddlevelsfiles/ddlevelsmenu.js"></script>

to my index file for my site.

Is this necessary for IE 7?

09-29-2008, 05:36 AM
You really only should use client side scripting to include a file as the very last resort. Does your pages support something like SSI (http://www.javascriptkit.com/howto/ssi.shtml) (server side includes) or PHP? If so, you should use those technologies to embed a file across multiple pages instead.