Javascript Issue

Two level, smoothly expanding, search engine friendly accordion menu.
Post Reply
Posts: 1
Joined: Thu Oct 29, 2009 12:14 pm

Javascript Issue

Post by stuarthutchinson »

I am trying to start with one of the drop downs in the open position. I have set the DefaultExpanded to [index1] and this opens the menu correctly but I keep getting the following error "index1 is undefined". I am sure this is something simple, but not to hot on all things javascript.

Can you assist.


Site Admin
Posts: 1252
Joined: Sat Feb 07, 2004 9:55 pm

Re: Javascript Issue

Post by norman »

Index1,index2 are numbers. So use [0] if you want the first entry to be shown open. Use [0,1] if you want the first 2 entries shown open, etc.

You can also leave this at the default [] setting and set variable OneMustOpen to true. This will show the menu open at the approriate page on the product pages and the first section will be shown open if on non product pages.
Post Reply