|
|
I'd like to be able to tell the javascript vertical tree menu to collapse all the way on the initial page load
Return to Recent Questions
Q:
I've looked through the FAQ's till my eyes burned... I know how to
collapse/expand all on page load, but can't find an answer to this
specific question
I am using tsaveState=1 and tcloseExpanded=1 and that works great when
navigating the javascript vertical tree menu. But I'd like to be able to tell the javascript vertical tree menu to
collapse all the way on the initial page load, without resetting those
first two variables.
for instance;
a user logs on, goes to the order page, uses the menu to navigate and
place an order. After the order is processed through a php
verification page, the user is directed back to the order page via the
php header() function, with the menu still intact, and the values of
the order updated.
But once the user navigates away from the order page, and then returns
to complete another order, I'd like the menu items to all be collapsed.
If that's not an inherent design of your menu program, is there a
variable that I can pass with the initial load that will cause a full
collapse?
A:
No, unfortunately there is no such parameter in Deluxe Tree.
But you can try to delete
var tsaveState=1;
parameter from your data file and add it on your html page directly.
So, on your initial page you can set:
var tsaveState=0;
and on other pages you should set:
var tsaveState=1;
Return to Recent Questions
Related:
- Aug 28, 2006 - Horizontal at level 1, Horizontal at level 2, then vertical?
- Sep 02, 2006 - Can I show / hide the javascript floating menu .
- Sep 02, 2006 - Little vertical spacers between menu items in the drop down menu.
- Sep 04, 2006 - Set a menu item to pressed when a page is loaded.
- Sep 05, 2006 - Can I say to deluxe-menu "use wrapping"?
- Sep 05, 2006 - Change cursor to a hand when over a menu link...
- Sep 06, 2006 - The alighment of the dropdown menu is off to the right in Firefox...
- Sep 06, 2006 - The Items of the javascript tree view stay expanded in the same state.
- Sep 06, 2006 - Can't see my javascript vertical tree menu in FireFox.
- Sep 11, 2006 - How can I hide my dropdown menu on print?
- Sep 11, 2006 - If I use doctype the settings of the submenus in javascript dropdown menu get lost.
|