wordpress plugin not working in IE7 and 8

my weblog (http://blog.datisdesign.com) is working properly in Firefox and IE9, but in IE8,7 the slider plugin on top of weblog, is not working properly and shows me this error :

SCRIPT438: Object doesn't support property or method 'slice' 
jquery.js?ver=1.4.4, line 149 character 392

What can I do ?

Related posts

Leave a Reply

1 comment

  1. Because script 438 (whatever that is) tries to use Array:slice, which isn’t implemented in versions of IE prior to 9.

    Try adding this before your slider js file.

    if (!Array.prototype.slice) {
        Array.prototype.slice = function (i, i2) {
            var cake = [];
            for (; i < i2; i++)
                cake.push(this[i]);
            return cake;
        };
    }
    

    It should fix it, no promises though.

    If it’s still not working, it must be String:slice. Try..

    if (!String.prototype.slice) {
        String.prototype.slice = function (i, i2) {
            var cake = "";
            for (; i < i2; i++)
                cake += this.chatAt(i);
            return cake;
        };
    }