Board Logo

Tree menu pro not always keeping its state
cmcginnis - 8/22/2006 at 04:34 PM

Hi All-

I currently have a web application that uses the Tigra Menu pro and it is NOT using frames. I'm having issues with the menu retaining state from click to click. Sometimes it works fine and others the menu renders itself in an older state.

I currently generate the tree_items array dynamically and store the string in the user's session which the jsp retrieves to build the menu when a page loads.

For example, if I have a folder open (A) which contains three children folders (1,2,3) and I open folder 1 and click on a link, then open folder 2 and click on a link - folder 1 is all of a sudden closed. Then if I open folder 3 and click on a link all three folders are open.

Again this is happening randomly and the menu will work fine for awhile, but then every once in awhile it'll freak out.

Thanks,
cmcginnis


tigra - 8/22/2006 at 11:18 PM

If the structure of the tree changes between the page loads the state information stored in the cookies may be applied to wrong items. In this case you may need to track the state information with your server side script.


cmcginnis - 8/23/2006 at 04:02 PM

The Javascript array that is built is created once and put into session as a String. Whenever the page loads, it pulls this String out of the session and rebuilds the menu. So the Javascript array actually stays the same from page to page.

Again, it will work fine for a few clicks then randomly I'll see a portion of the menu close itself.


tigra - 8/23/2006 at 04:07 PM

Are all the pages in the same directory. Default setting is to have separate cookie for each individual directory.


cmcginnis - 8/24/2006 at 12:24 PM

The pages are in different directories. Is there anyway I can change the default settings?


tigra - 8/24/2006 at 12:29 PM

http://www.softcomplex.com/forum/viewthread_2893/


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/