Ok, the tab was remaining 'grey' because the CSS selector :focus. If I remove the :focus from the css directive, it works fine. However, that makes it difficult for tab navigation. Is there a handy jquery function to remove focus from an element? Like a .blur() function?
http://langdata.potowski.org -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meece, Clifford T Sent: Wednesday, September 13, 2006 12:48 PM To: jQuery Discussion. Subject: Re: [jQuery] Tabs plugin update: autoheight, effects Ok, I have fixed it so none are open on initial load, so now the last think is for the background shading to go away when you close a tab. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Meece, Clifford T Sent: Wednesday, September 13, 2006 12:32 PM To: jQuery Discussion. Subject: Re: [jQuery] Tabs plugin update: autoheight, effects I took a stab at implementing some of these changes. Right now I have just modified the code to suit my case. It would be better, of course, to define an option like SelfToggle, or AllowNone, which would allow both behaviors. I have a site that is work in progress at : http://langdata.potowski.org The tabs are at the top. Don't bother looking at it with IE. I still have lots of specific IE fixes to put in to my css files. In FF the tabs are working well with a few caveats: - haven't implemented 'all closed on load' - if you click the open tab, it closes, and ONCLASS is removed, but the button still has altered background. This is a CSS issue for sure, and I guess it has to do with the fact that even though the div isn't displayed, we are still 'at' #section-1 or whatever. Do you have any hints at the best way to fix the second issue? The code ( part of it ) that I changed is this: } else if (options.fxSlide) { if (target.css("display") != 'none' ) { visible.slideUp(options.fxSpeed, function() { $(container).find('>ul>li').removeClass(ON_CLASS); }); } else { if ( visible.size() > 0){ visible.slideUp(options.fxSpeed, function() { changeClass(); target.slideDown(options.fxSpeed, callback); }); } else { changeClass(); target.slideDown(options.fxSpeed, callback); } } -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Klaus Hartl Sent: Wednesday, September 13, 2006 1:58 AM To: jQuery Discussion. Subject: Re: [jQuery] Tabs plugin update: autoheight, effects Meece, Clifford T schrieb: > I've just started uising the tabs plugin and like it a lot. I was > wondering, though, how would I implement it if I want the current open > tab to close itself when clicked again? This means that there may not > be any tabs open at a given time. I think that'll be not to difficult and has been requested quite a few times... I have it on my list. -- Klaus _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
