Grow your CSS skills. Land your dream job.

Slider not working on IE, but fine with Chrome

  • # May 14, 2013 at 2:45 pm

    my slider works great with Chrome, however can not be slide on IE.
    http://www.lcfbylulu.com/test/

    Desperately need help…
    Thanks in advance

    # May 14, 2013 at 3:00 pm

    I’m seeing a javascript error:

    > SCRIPT16389: Unspecified error. script.js, line 100 character 3

    It’s this line:

    canvasContext.drawImage(image,0,0);

    You might want to check if it exists, and return if it doesn’t

    if (!canvasContext) { return; }
    canvasContext.drawImage(image,0,0);

    # May 14, 2013 at 3:17 pm

    Thanks for reply.
    I’ve added “if (!canvasContext) { return; }” into the script.js
    However problem still exist…

    # May 14, 2013 at 3:55 pm

    Hmm, then maybe it is because “images/sliderPic5.jpg” doesn’t exist?

    # May 14, 2013 at 5:10 pm

    hmm…you’re right …that’s strange though..
    Thanks!! Finally working

    # May 14, 2013 at 8:29 pm

    The reason it broke is because canvas was trying to render an empty image. I’m not sure why your plugin renders all images with canvas instead of just showing the image.

    # May 14, 2013 at 9:42 pm

    IE8 [doesn't support canvas](http://caniuse.com/#feat=canvas “Canvas Support – Can I Use”), could this be your issue?

    # May 14, 2013 at 11:03 pm

    @ElijahFowler I was seeing the error in IE10.

    # May 15, 2013 at 1:49 am

    Well that’s a whole other ballpark. lol Good Luck!

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".