(c) 2016, Deluxe-Menu.com
Search  
Ctrl+F2 - enter/switch menu | Arrow keys - navigate | Esc - exit menu  
  Support
  FAQ
  Contacts
  About Us
  Recent Questions


 

    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:
Reputable Drag and Drop Web Builder | Overview Beautiful Slider jQuery Application  |  First-rate Easy Website Builder | How-to Guide  |  Great MP4 to HTML5 Generator Tutorial  |  Fantastic Bootstrap Page Themes For Your Company  |  Fine Responsive Web Page Builder | Overview  | 
Copyright (c) 2019, Deluxe-Menu.com
Home  |  Product Info  |  Samples  |  Download  |  Purchase  |  FAQ  |  Site Map  |  Terms of Use  |  Write Us
All rights reserved. AI Website Builder | AI Website Generator | Website Generator AI | AI website design generator | AI web page design generator