Skip to content
This repository has been archived by the owner on May 5, 2021. It is now read-only.

IE 8 Nivo slider not working #167

Closed
zarkokuvalja opened this issue Feb 28, 2011 · 2 comments
Closed

IE 8 Nivo slider not working #167

zarkokuvalja opened this issue Feb 28, 2011 · 2 comments

Comments

@zarkokuvalja
Copy link

his post is to help out folks who had a very frustrating experience with Nivo Slider on SOME instances of IE 8.

What would happen is that the script simply wouldn't fire and Developer tools, therefore, wouldn't show any errors etc.

For me this would result in just seeing the "loading" gif and my fist penetrating the monitor in slow motion.

Mind you I am a Javascript rookie so my explanation might be wrong, but the solution worked for me.

It seems some IE8's had trouble with

$(window).load(function() {
$('#slider').nivoSlider();
});

in the sense that (I am guessing) it wanted to load all the images for the slider first and then it would consider the window "loaded".
Turns out IE8 is actually an ambitious little bastard.

Changing the above to

$(function() {
$('#slider').nivoSlider();
});

sorted everything out as IE didn't wait for the images and just went ahead and fired off the script.

Hope this helps out someone.

@fissible
Copy link

fissible commented May 2, 2012

To get NivoSlider working in IE 8, be sure your script tags use the type="text/javascript" instead of type="application/javascript"

@ghost
Copy link

ghost commented May 19, 2012

Thanks a lot zarkokuvalja! your solution worked perfect for me on blogger :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants