Solved

Jquery Accordion issues on IE

Posted on 2010-11-08
6
440 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 43

Expert Comment

by:Rob
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 43

Expert Comment

by:Rob
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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article discusses four methods for overlaying images in a container on a web page
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

726 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