Forums
View unanswered posts | View active topics It is currently Tue Sep 23, 2014 6:21 am



Reply to topic  [ 3 posts ] 
 jQuery removeclass issues in IE8 and below 
Author Message

Joined: Thu Aug 19, 2010 5:21 pm
Posts: 3
Post jQuery removeclass issues in IE8 and below
Hi, I've created some rounded tabs with PIE and I'm using jQuery to change class when each tab is clicked and remove classes from all other tabs...

The problem is, in IE, the non-active tabs do not go back to their original state.

Is there a workaround for this?

Really appreciate any help and thank you for PIE, it's genius!


Last edited by Phil on Sun Aug 22, 2010 6:13 am, edited 1 time in total.



Thu Aug 19, 2010 5:56 pm
Profile

Joined: Wed Jul 14, 2010 11:46 am
Posts: 1441
Post Re: jQuery removeclass issues in IE8 and below
Take a look at the section titled "-pie-watch-ancestors" on the Supported Features page: http://css3pie.com/documentation/suppor ... -features/

In a nutshell: PIE doesn't automatically react to property changes on ancestor elements. So since you're changing the className on the parent element, rather than the target element itself, PIE doesn't see the change. You can tell PIE to also watch for changes on the parent element, by adding -pie-watch-ancestors:1 in the CSS for your links.

Hope that helps


Sat Aug 21, 2010 9:03 am
Profile

Joined: Thu Aug 19, 2010 5:21 pm
Posts: 3
Post Re: jQuery removeclass issues in IE8 and below
BINGO! Worked a treat. Thank you Jason, I am loving Pie.


Sat Aug 21, 2010 9:16 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Yahoo [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.