You will recieve your password to this address. Address is not made public.

Your preferred username that is used when logging in.

Using multiple unordered lists to populate content in one div Created Aug 24, 2010

This thread is solved

Views: 1980     Replies: 2     Last reply Aug 26, 2010  
You must login first before you can use this feature

bitmanic
http://bitmanic.com :: http://twitter.com/bitmanic

Posts: 3

Registered:
Aug 17, 2010

Using multiple unordered lists to populate content in one div

Posted: Aug 24, 2010

Hey there.

I have a sidebar with several accordions for navigation groups. You can open and close each accordion to view the list of links associated with that group (browse by color, browse by fruit, etc).

I would like to use jQuery Tools to make content load via AJAX within one target <div> when *any* of the links are clicked, regardless of which group they're in. However, it appears as if I can't use a single <div> element for all link lists - alternately, I'm required to supply a separate <div> element for each list.

Can anyone confirm this? If so, do you know a workaround? Any help would be greatly appreciated.

bitmanic
http://bitmanic.com :: http://twitter.com/bitmanic

Posts: 3

Registered:
Aug 17, 2010

» Using multiple unordered lists to populate content in one div

Posted: Aug 24, 2010

Reply to: Using multiple unordered lists to populate content in one div, from bitmanic
Okay, I found the solution. Initially, I was calling the script like this:

$(".ul.subnav").tabs("div.tab", {
	effect: 'ajax',
	history: true,
});
But really, I needed to call the script like this:

$(".sidebar").tabs("div.tab", {
	effect: 'ajax',
	history: true,
	tabs: 'ul.subnav a'
});
Now, any link within any unordered list with a class of 'subnav' will trigger new content to be loaded into the <div> element, as long as they're contained inside of the sidebar.

ad_facial

Posts: 2

Registered:
Aug 26, 2010

» » Using multiple unordered lists to populate content in one div

Posted: Aug 26, 2010

Reply to: » Using multiple unordered lists to populate content in one div, from bitmanic
Hello, i'm trying pretty much the same thing you have here. Except my menu is in one accordion. It sounds like yours is split up into multiple accordions.

Could you check out my code and tell me whats wrong with it?
www.keckler.com/new/more.php

Thanks alot.