List Info

Thread: slideup() issue with IE. HELP NEEDED




slideup() issue with IE. HELP NEEDED
country flaguser name
United States
2008-05-10 00:28:46

Hey every,

My Java skills are virtually non-existent, but i have been
able to make use
of some code to create a slideup and down effect on my
content (doing this
as to not have multiple html pages, but also because it
looks pretty slick).  


In both Safari and Firefox the website functions perfectly,
however,
Internet explorer does not even begin to create the effect
rendering the
site useless.


I am really unsure of what to do at this point, so i thought
i would ask the
community for some help.

The website is:

http://www.gogreenecycl
es.com

Any help you could provide, or direct me to, would be
greatly appreciated.

Thanks again, 

Chad.
-- 
View this message in context: http://www.nabble.c
om/slideup%28%29-issue-with-IE.-HELP-NEEDED-tp17117621s27240
p17117621.html
Sent from the jQuery General Discussion mailing list archive
at Nabble.com.


Re: slideup() issue with IE. HELP NEEDED
user name
2008-05-10 07:46:49
For some reason, Internet Explorer doesn't seem to like the
attr()
function.

// switch all tabs with the class 'active' off
$(".active").attr({ class: "tab" });

// switch *this* tab to have the 'active' class
$(this).attr({class:"tab active"});

Changing it to

// switch all tabs with the class 'active' off
$(".active").toggleClass("highlight");

// switch *this* tab to have the 'active' class
$(this).addClass("active");

seems to be the trick 

At least it works in my Internet Explorer 7 now.

On 10 Maj, 07:28, churock <c.holmes.desig...gmail.com> wrote:
> Hey every,
>
> My Java skills are virtually non-existent, but i have
been able to make use
> of some code to create a slideup and down effect on my
content (doing this
> as to not have multiple html pages, but also because it
looks pretty slick).
>
> In both Safari and Firefox the website functions
perfectly, however,
> Internet explorer does not even begin to create the
effect rendering the
> site useless.
>
> I am really unsure of what to do at this point, so i
thought i would ask the
> community for some help.
>
> The website is:
>
> http://www.gogreenecycl
es.com
>
> Any help you could provide, or direct me to, would be
greatly appreciated.
>
> Thanks again,
>
> Chad.
> --
> View this message in context:http://www.nabble.com/slideup%28%29-issu
e-with-IE.-HELP-NEEDED-tp1711...
> Sent from the jQuery General Discussion mailing list
archive at Nabble.com.

Re: slideup() issue with IE. HELP NEEDED
user name
2008-05-10 08:04:59

On Sat, May 10, 2008 at 8:46 AM, Jong < neselogmail.com">neselogmail.com> wrote:

For some reason, Internet Explorer doesn't seem to like the attr()
function.

// switch all tabs with the class 'active' off
$(&quot;.active").attr({ class: "tab&quot; });

The name of the attribute is 'className', not 'class'. So this works

$(".active").attr({ className: "tab&quot; });

Or, as you mentioned, toggleClass/addClass/removeClass can be used.

- Richard

Re: slideup() issue with IE. HELP NEEDED
user name
2008-05-10 09:08:59
Ahh, thanks for pointing that out 

On 10 Maj, 15:04, "Richard D. Worth"
<rdwo...gmail.com> wrote:
> On Sat, May 10, 2008 at 8:46 AM, Jong <nes...gmail.com> wrote:
>
> > For some reason, Internet Explorer doesn't seem to
like the attr()
> > function.
>
> > // switch all tabs with the class 'active' off
> > $(".active").attr({ class:
"tab" });
>
> The name of the attribute is 'className', not 'class'.
So this works
>
> $(".active").attr({ className:
"tab" });
>
> Or, as you mentioned, toggleClass/addClass/removeClass
can be used.
>
> - Richard

Re: slideup() issue with IE. HELP NEEDED
user name
2008-05-11 18:46:52
Hey, the site is working now.

My sincerest thanks to you all for the help!

-Chad

On May 10, 10:08 am, Jong <nes...gmail.com> wrote:
> Ahh, thanks for pointing that out 
>
> On 10 Maj, 15:04, "Richard D. Worth"
<rdwo...gmail.com> wrote:
>
> > On Sat, May 10, 2008 at 8:46 AM, Jong
<nes...gmail.com> wrote:
>
> > > For some reason, Internet Explorer doesn't
seem to like the attr()
> > > function.
>
> > > // switch all tabs with the class 'active'
off
> > > $(".active").attr({ class:
"tab" });
>
> > The name of the attribute is 'className', not
'class'. So this works
>
> > $(".active").attr({ className:
"tab" });
>
> > Or, as you mentioned,
toggleClass/addClass/removeClass can be used.
>
> > - Richard

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )