PDA

View Full Version : Runtime error: ddlevelsmenu is undefined



ZenStudios
07-14-2009, 04:48 PM
:eek:1) Script Title: All Levels Navigational Menu (v2.2)

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

3) Describe problem:

Everytime I try to view my page with this menu I get the runtime error specified in the title of the thread.

Here is the chunk of code found at that line:


<script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script>

How do I fix this?
Please help asap.
thanks

thetestingsite
07-14-2009, 04:57 PM
You have to make sure you are calling the javascript file at the beginning of the document (between the head tags). Other than that, we need more information.

Please post a link to the page on your site that contains the problematic script so we can check it out.

See these threads for proper posting format when asking a question.
http://www.dynamicdrive.com/forums/showthread.php?t=6
http://www.dynamicdrive.com/forums/showthread.php?t=19533