Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Aug 4, 2008, 07:25 PM   #1
monke
macrumors 65816
 
monke's Avatar
 
Join Date: May 2005
Nested Javascript Accordion

I've used the accordion script provided by dezinerfolio.

I have a left navigation accordion already set up and working.
I also have a common content container accordion set up and working.

I want to nest the common content container accordion into the left navigation according, but as soon as I do that the common content tab's won't load the content that they are supposed to.

Any ideas?
__________________
Yesterday it worked. Today it is not working. Windows is like that.
monke is offline   Reply With Quote
Old Aug 4, 2008, 07:52 PM   #2
angelwatt
macrumors 601
 
Join Date: Aug 2005
Location: Dayton, OH
Do you have a page where you're testing this code that we could see?
angelwatt is offline   Reply With Quote
Old Aug 4, 2008, 08:01 PM   #3
monke
Thread Starter
macrumors 65816
 
monke's Avatar
 
Join Date: May 2005
Quote:
Originally Posted by angelwatt View Post
Do you have a page where you're testing this code that we could see?
No, I'm working on it locally only.

I'm using the exact same code as their two demo's (left navigation and common content) except that I changed all of the common content tags so that they wouldn't interfere with the left navigation tags. It worked until I nested it.
__________________
Yesterday it worked. Today it is not working. Windows is like that.
monke is offline   Reply With Quote
Old Aug 4, 2008, 08:15 PM   #4
angelwatt
macrumors 601
 
Join Date: Aug 2005
Location: Dayton, OH
Unfortunately they have minified their JavaScript so it's very hard to see what might be happening when you combine the two techniques.It may have something to do with naming of classes or ids. The code likely can't tell the difference between the two accordions and so may not be able to play nice.
angelwatt is offline   Reply With Quote
Old Aug 4, 2008, 08:19 PM   #5
monke
Thread Starter
macrumors 65816
 
monke's Avatar
 
Join Date: May 2005
Quote:
Originally Posted by angelwatt View Post
Unfortunately they have minified their JavaScript so it's very hard to see what might be happening when you combine the two techniques.It may have something to do with naming of classes or ids. The code likely can't tell the difference between the two accordions and so may not be able to play nice.
Ok, I'll try fiddling around with it a bit and see if anything happens. I just wasn't sure if it was an error I made or not.
__________________
Yesterday it worked. Today it is not working. Windows is like that.
monke is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:49 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC