Hi, I am fairly new to jquery but I have been practicing for a month.
I would like to create a jquery persistent menu. I've been searching
for a perfect solution but could not find one.

I have start with a basic menu
http://www.ecommercewebtemplates.net/test/test.html

The menu is expanded / collapsed when you click on <span> tag.
However, it's collapsed again when you click any link to another page.
This is not what I want.

So I created another one using location based :
http://www.ecommercewebtemplates.net/test/jquery-menu-location-based.html

It's very basic if you click to view the source code .


OK the location based menu works but still not perfect for users
because <div> tag is expanded only if user click on the link that
belong to it.

I want to have a persistent menu that remember the last states
(expanded or collapsed).
If user click to expand both 'Span A' and 'Span B' without collapsing
them then it should stay open when the next page is loaded.

I have had a look at the example from 
http://www.dynamicdrive.com/dynamicindex1/slashdot.htm
but their cookies is too complex to understand.

How do I make a persistent jQuery menu that remember the last action?
is the cookies based the best solution?

Your suggestion/help would be very appreciated.

Mali

Reply via email to