Solved

Jquery accordion not working anymore, any ideas?

Posted on 2011-02-16
10
476 Views
Last Modified: 2012-05-11
Please take a look at the site

http://test2.singulink.com/Index.aspx

When you click on the accordion the following error is given

"Object doesn't support this property or method
Line: 154
Char: 262
Code: 0
URI: http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"

I've tried figuring it out myself....and can't seem to.  I'm pretty sure it was working before I added the hover menu at the top.  But once I take off the hover menu, it still doesn't work!  Let me know if you need anything else to figure this out.  Thanks!



0
Comment
Question by:leena42
  • 5
  • 4
10 Comments
 
LVL 15

Expert Comment

by:Tomarse111
ID: 34907156
Its something to do with the easing that is being used. Just trying to track it down now though ..
0
 

Author Comment

by:leena42
ID: 34907176
Thank you, please let me know if you need anything else to help track it down.
0
 
LVL 20

Expert Comment

by:Proculopsis
ID: 34907328

This makes the problem go way but it's no solution:

           $("#accordion").accordion({ header: "h3", animated: false });
0
 
LVL 15

Expert Comment

by:Tomarse111
ID: 34907338
Using a replica of your code it is something in the file:

<script src="http://test2.singulink.com/Content/Scripts/jquery.easing.1.1.js" type="text/javascript"></script>

If you remove that line then everything works fine. I'm sure where you got that easing script from though? how important is it?
0
 

Author Comment

by:leena42
ID: 34907426
That sucks!  The easing is for the top navigation to do it's animation.  I got it from http://www.gmarwaha.com/blog/2007/08/23/lavalamp-for-jquery-lovers/

Do you know if there is an easy way to make these two elements (accordion and menu) play nicely together?
0
Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

 
LVL 15

Accepted Solution

by:
Tomarse111 earned 500 total points
ID: 34907455
ahhh

Ok think this works, it does on my version at least: reorganise the loading of the scripts to be:

 <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js" type="text/javascript"></script>
    <script src="http://test2.singulink.com/Content/Scripts/jquery.easing.1.1.js" type="text/javascript"></script>  
    <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/jquery-ui.min.js" type="text/javascript"></script>

Should work then :)
   
0
 

Author Closing Comment

by:leena42
ID: 34907487
Awesome :)
0
 

Author Comment

by:leena42
ID: 34907497
Thanks so much! That fixed it.... do you know why I have to order it that way!  I always with the ordering of the scripts... does the why does the easing need to load before the ui?
0
 
LVL 15

Expert Comment

by:Tomarse111
ID: 34907535
I'm presuming that somewhere in the UI script it would be referencing its own easing or creating it's own, which in turn would be overriding the other script ... which your menu would be relying on.
0
 

Author Comment

by:leena42
ID: 34907564
Okay thank you, sorry about my last post, don't know what happened with the spelling/grammar, surprised you could understand it.  I always seem to have a problem with the ordering of scripts, you saved me so much time,  thanks again!
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now