Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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);
      });
like image 219
Homem Robô Avatar asked Jul 30 '10 08:07

Homem Robô


2 Answers

Just for info: jQuery 1.4.3 has solved this problem.

like image 62
Babak Bandpay Avatar answered Nov 07 '22 15:11

Babak Bandpay


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.

like image 1
Amit Patel Avatar answered Nov 07 '22 17:11

Amit Patel