Accordion Menu / Posts /

acdnmenu is undefined

1

Hello All,

I am trying to use this menu using the open option like so:

<script>
acdnmenu.open("id_name", false);
</script>

 on my website but I keep getting this error when the page loads: 'acdnmenu' is undefined. The menu also uncontrollably jumps after a collapsed heading has been clicked. I am using Internet Explorer 10 with compatibility mode enabled. When I have compatibility mode disabled, I get a different error message: Object doesn't support property or method 'open', but the menu does not jump at all. Please help me. I really like this menu and would like to incorporate it into my site, but I cannot have these errors. Any help is appreciated.

 

~Billy

Billy Blanks  10 years ago   viewed: 3502    

4 Answers

0
Maybe you need to change it to amenu.open("id_name", false)?
Milo   10 years ago
0
Thank you for the reply Milo. Sorry for my ignorance but I am a little confused. I was under the impression that when I want a certain group to be open on page load then I need to use the same text that is listed in the amenuOptions in the accordionmenu.js file under the menuId section. In my file it is shown as:
var amenuOptions =
{
    menuId: "acdnmenu",
    linkIdToMenuHtml: null,
    expand: "single",
    license: "mylicense"
};
I have this as my <div> id: <div id="acdnmenu">

I tried your suggestion by using "amenu.open("id_name", false)" but I am getting the same error. This time, it reads as: 'amenu' is undefined. Can you please help me to understand what I am doing wrong?
Billy Blanks   10 years ago
0
Please go through http://www.menucool.com/2457/Troubleshooting-Request
Milo   10 years ago
0

Hello gorilla tag, I think you should make sure that you have included the necessary JavaScript file(s) for the 'acdnmenu' menu in your HTML document. Check that the script tag referencing the JavaScript file is placed correctly in the HTML code, usually within the <head> section or just before the closing </body> tag.

ursulaarmstrong
  one year ago

   

Your name*
Password
(Optional. Used to modify this post afterwords)
+ =  

Ask your Own Question

  • If your question is related to the topic of this post, you can post your question to this page by clicking the "Post a reply" button at left;

  • When you want to start a new page for your question: