Hi, Technically what you are trying to do may be achievable, but I have a suggestion for achieving the same feature in a slightly different manner:
1. Instead of redirecting your visitor to a different page altogether and then try to recreate the same state, just use one of jQuery's ajax calls including $.post and (selector).load and the same content can be loaded into a div. This way you can avoid writing code for maintaining accordian state. 2. go through http://www.jqueryui.com/demos/accordion/#event-changestart and in this event, based on the tab being activated, make the load or post call. I am not sure how far you are into the development of the site and what is the impact on other aspects of the site in this change, but it will definitely reduce the amount of state maintenance you need to do and even make the site faster. Thank you, Kartik Sehgal On Thu, Jul 30, 2009 at 11:10 PM, Geoff <[email protected]> wrote: > > Hi, > > I'm trying to implement the accordion navigation menu for one of my > sites and have a quick question on how to properly set up the call...I > went through the documentation and I think that I'm obviously missing > something... > > I want the header to be a link as well as any content within the div > to contain links. So something like... > > Guitars (links to guitars.html) > - Electric (links to guitarsElectric.html) > - Accoustic (links to guitarsAccoustic.html) > Drums (drums.html) > - big (bigdrums.html > - small (smalldrums.html > > Then, when I click on a header I want the header to expand and the > browser to link to the coresponding page. Once the new page renders > the clicked on header should already be expanded. > > I know I can set the active menu item like this...but I don't know how > to make this choice persistant between page loads > > $("#category-menu").accordion({ header: "h3", active: 2 }); > > Any advice? > > Thanks! > Geoff > > > > -- URL: http://sites.google.com/site/spyderhoodcommunity --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en -~----------~----~----~----~------~----~------~--~---
