Homem Robô
Homem Robô

Reputation: 71

Whats's wrong with this jquery slider function on ie8?

I really don't get it... what I'm doing wrong here?

jQuery(function(){
  //vars
  var conveyor = jQuery(".content-conveyor", jQuery("#slideWrapper")),
  item = jQuery(".item", jQuery("#slideWrapper"));

  conveyor.css("width", item.length * parseInt(item.css("width")));

        var sliderOpts = {
    max: (item.length * parseInt(item.css("width"))) - parseInt(jQuery("#slideContent", jQuery("#slideWrapper")).css("width")),
          slide: function(e, ui) { 
            conveyor.css("left", "-" + ui.value + "px");
          }
        };

        jQuery("#slider").slider(sliderOpts);
      });

Upvotes: 6

Views: 3826

Answers (2)

Amit Patel
Amit Patel

Reputation: 21

invalid argument jquery-1.3.2.min.js

then in all solutions post solutions as

step1) search return N.toUpperCase()}); in jquery-1.3.2.min.js step2) add if(K=='Infinitypx'){K=''};if(K=='NaNpx'){K=''}; after searched stmt;

actually this was a bug in jquery-1.3.2.min.js where all the scnerios were not covered.

adding this will sort out that error and it will work smoothly.

Upvotes: 1

Babak Bandpay
Babak Bandpay

Reputation: 177

Just for info: jQuery 1.4.3 has solved this problem.

Upvotes: 7

Related Questions