Results 1 to 4 of 4

Thread: All Levels Navigational Menu (v1.4) and Ajax includes script??

  1. #1
    Join Date
    Jan 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default All Levels Navigational Menu (v1.4) and Ajax includes script??

    1) Script Title: All Levels Navigational Menu (v1.4)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...menu/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
    Code:0
    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">
    ajaxinclude(rootdomain+"/afile3.htm")
    </script></div></td></tr>
    ****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>
    </div>

    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/dynamici...menu/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

    Tom

  2. #2
    Join Date
    Jan 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    After further review... It appears that when the IE 7 page hits the line after
    <script type="text/javascript">
    ajaxinclude("/afile3.htm")
    </script>

    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..

  3. #3
    Join Date
    Jan 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?

  4. #4
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    You really only should use client side scripting to include a file as the very last resort. Does your pages support something like SSI (server side includes) or PHP? If so, you should use those technologies to embed a file across multiple pages instead.
    DD Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •