Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Keeping jquerry Accordion Menu OPEN...
Old 08-01-2010, 08:21 PM Keeping jquerry Accordion Menu OPEN...
Experienced Talker

Posts: 48
Name: April
Trades: 0
Hello, my site is www.studio-atmosphere.com.

As you can see the accordion menus work as desired except for the fact that the page always reloads to open the first menu item instead of keeping the current page open... I have googled the problem and found numerous fixes, but non seem to work. The code I am using is from:

http://jqueryui.com/demos/accordion/

I like the code, It's nice and simple. I think that what I need to do is found in the Options tab...

aka:

If set, looks for the anchor that matches location.href and activates it. Great for href-based state-saving. Use navigationFilter to implement your own matcher.

Code examples

Initialize a accordion with the navigation option specified.
PHP Code:
$( ".selector" ).accordion({ navigationtrue });
Get or set the navigation optionafter init.
//getter
var navigation = $( ".selector" ).accordion"option""navigation" );
//setter
$( ".selector" ).accordion"option""navigation"true ); 
that stuff... BUT I tried placing those in my HTML header and in the jquery file itself... I may have put them in the wrong places, not sure?

Other than that I have no ideas for that kind of jquery accordion. I know some other fixes involve using a menu with parent/child relationships. I did get one of those to work correctly as far as keeping the page open, but it had A LOT of other issues. It wanted to stair-step out and when I made it a vertical menu the content spilled out all over the place instead of sliding like it was supposed to... I am just really not sure.

Thank you in advance for your help! I do really appreciate it! I'll be so happy when this bug is fixed...

Sincerely,
April
mightyjoeape is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-04-2010, 11:56 AM Re: Keeping jquerry Accordion Menu OPEN...
Extreme Talker

Posts: 246
Trades: 0
what about on selection of an accordion item you put the index of that into a cookie object and then on load of page you set the selection to whatever was put into the cookie.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
stbuchok is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Keeping jquerry Accordion Menu OPEN...
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62528 seconds with 12 queries