On Jan 30, 2008, at 10:57 AM, Bhaarat Sharma wrote:
Hi ty,

If I understand your question correctly..I think you mean that if this
menu was used throughout the site and your pages would be doing an
include on this js file, will the menu stay the same from page to page
with user selections. The answer is yes (i think), because it is using
cookies.


That's right. The cookies work at the domain level, unless otherwise specified.

On my test page (http://test.learningjquery.com/cookie-menu.html), I put a link to another page with the same script and menu so you can see the persistence of the expand/collapse state.


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com


Reply via email to