accordion constructor error?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   aubrey_johnson
Posted On:   Sunday, March 16, 2008 02:13 PM

hello everyone! I am having some problems getting a simple accordion to work. The person who made the script spells accordion incorrectly, but I have made sure to do the same throughout my code. I get this in the error console: Error: Accordian is not a constructor Source File: file:///Macintosh%20HD/Users/Aubrey/Desktop/test_2way/s/global.js Line: 122 Here is line 122: JavaScript Code: //accordion function myAccordian(){ var Accordian = new Accordian('basic-accordian',5,'header_highlight'); } Here is where I call it in my HTML: JavaScript Code: window.name = "   More>>

hello everyone!


I am having some problems getting a simple accordion to work.
The person who made the script spells accordion incorrectly, but I have made sure to do the same throughout my code.




I get this in the error console:
Error: Accordian is not a constructor
Source File: file:///Macintosh%20HD/Users/Aubrey/Desktop/test_2way/s/global.js
Line: 122



Here is line 122:
JavaScript Code:


			
//accordion
function myAccordian(){
var Accordian = new Accordian('basic-accordian',5,'header_highlight');
}


Here is where I call it in my HTML:
JavaScript Code:


			




I got the accordian script from here:
http://www.dezinerfolio.com/2007/07/...pt-accordions/



Please visit:
http://www.iamaubrey.com/315_5/index.html to see the site and the error.



Thank you for your time!!

   <<Less

Re: accordion constructor error?

Posted By:   Firat_Tiryaki  
Posted On:   Thursday, May 29, 2008 03:46 AM

Something wrong with the Mac browser?
About | Sitemap | Contact