Solved

Jquery Accordion issues on IE

Posted on 2010-11-08
6
436 Views
Last Modified: 2012-05-10
Hello,
I have used the jquery UI to build a simple accordion for the Tools on this page: http://www.africanhealthleadership.org/resources/toolkit/

Everything works fine on Firefox, but things are weird on IE7.  When someone clicks on one of the accordion elements, the line/arrow above the previously clicked accordion element disappears.  

The line/arrow will reappear on mouseover, but something seems to be overwriting the stylesheet information.

Also on IE, I am getting unwanted scrollbars on the first item (Preparation) after a user clicks on a different part of the accordion.  

I have tried all sorts of ideas but with no luck.

Thank you for any help!
0
Comment
Question by:rjunk
  • 3
  • 2
6 Comments
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 34089961
Please check and correct the errors in your page as it's more than possible that's what is causing your problems:

http://validator.w3.org/check?uri=http%3A%2F%2Fwww.africanhealthleadership.org%2Fresources%2Ftoolkit%2F&charset=%28detect+automatically%29&doctype=Inline&group=0
0
 

Author Comment

by:rjunk
ID: 34093300
Thanks Tagit, I resolved the big ones that applied to the accordion. I will clear up the others before launch, but the problem still persists and I don't suspect that it is tied to those unresolved items.  Any ideas are appreciated, thank you.
0
 
LVL 42

Expert Comment

by:Rob Jurd, EE MVE
ID: 34097382
I'm just looking at your code in your main page and all your javascript comments only have 1 slash.  This will definitely be causing unpredictable results.  I would suggest testing with Firefox and download an add-on called Firebug.  it shows you all js and dom errors

eg


                  ); / end hover
            }); / end each
      }); / end ready()
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 2

Expert Comment

by:wasim117
ID: 34100863
I verified code, markup is wrong.
p should be children of li not ul
view below code.
 









<ul class="tools">



<li>Overview of Preparation Tools</li>



<li><p><a href="http://www.africanhealthleadership.org/wp-content/uploads/Special-Education-Paraprofessional-posting.pdf">Programmatic Logic</a></p></li>



<li><p><a href="http://www.africanhealthleadership.org/wp-content/uploads/FinalLogo-tag-line.pdf">Project Management &ndash; test</a></p></li>

</ul>

Open in new window

0
 

Accepted Solution

by:
rjunk earned 0 total points
ID: 34101107
Thanks Tagit and Wasim. I was able to solve by removing the clears and setting overflow to auto on the parent div.  I will go and clean up the validation errors now, thank you for your help.
0
 

Author Closing Comment

by:rjunk
ID: 34134489
Why a B? I was the goof who put the malfunctioning code in there in the first place, no A for me.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this Micro Tutorial viewers will learn how to create a CSS image sprite (In a later tutorial, viewers will learn how to use CSS and HTML to create a navigation menu using this sprite) Open a new Photoshop document with a width of (Icon width)x(N…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

708 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

20 Experts available now in Live!

Get 1:1 Help Now