chazzer
10-15-2004, 08:17 AM
Script: Switch Content
I'm having trouble with the "Switch Content" script:
http://dynamicdrive.com/dynamicindex17/switchcontent.htm
I have used: var enablepersist="on"
But this does not work consistently. Somtimes it remembers which menu was open and sometimes it doesn't.
Here is a brief explanation of how I have implemented this script.
I have a number of web pages built using ASP for a shopping cart site. I have set up the menu on an included ASP page so that it can be shared by all the pages in my site. I have then populated the menu headers and submenu items from a database recordset. This all works well.
The problem is that as you navigate around the site then menus close up and open randomly.
However, if I then change the 'collapseprevious' off:
var collapseprevious="no"
The 'enablepersist' works.
Ideally I would prefer to have both functions working.
Any ideas anybody?
I'm having trouble with the "Switch Content" script:
http://dynamicdrive.com/dynamicindex17/switchcontent.htm
I have used: var enablepersist="on"
But this does not work consistently. Somtimes it remembers which menu was open and sometimes it doesn't.
Here is a brief explanation of how I have implemented this script.
I have a number of web pages built using ASP for a shopping cart site. I have set up the menu on an included ASP page so that it can be shared by all the pages in my site. I have then populated the menu headers and submenu items from a database recordset. This all works well.
The problem is that as you navigate around the site then menus close up and open randomly.
However, if I then change the 'collapseprevious' off:
var collapseprevious="no"
The 'enablepersist' works.
Ideally I would prefer to have both functions working.
Any ideas anybody?