meltingice/CamanJS — Issue #20: Script Error IE9
Author: valentinalisch
Created: 2012-01-27 13:45:51+00:00
State: open

I'm using IE9 in cooperation with Caman.js

My script is the following.
It works perfectly in every browser except for IE9.
IE is throwing the following error in it's console:

"SCRIPT5022: DOM Exception: INDEX_SIZE_ERR (1)"

It's not just with this script but with every time I try to use Caman.js in IE9
Not working at all.

[code]
function imgDeSat(){
//alert("INIT");
jQuery(window).load(function(){

//alert("DESAT");

/*DEFINTIONS*/
var speed = 500;
var saturationVar = -50;
/**/

jQuery('.slideshow-item img').each(function(index){

jQuery(this).clone().prependTo(jQuery(this).css({'position':'absolute','top':'0px','left':'0px'}).parent()).addClass('img-desaturate').attr('id', 'canvasID');

var target = '.item-'+(index+1);
var target_img = '.item-'+(index+1)+' img.img-desaturate'; /*<<<<<<<<<<<<<<<<*/

Caman(target_img).saturation(saturationVar).render();

jQuery(target).find('#canvasID').css({'position':'absolute','z-index':'99'}).addClass('img-desaturate');

});

jQuery('.slideshow-set').mouseover(function(){
jQuery(this).find('canvas').stop().animate({opacity:0}, speed);
});
jQuery('.slideshow-set').mouseout(function(){
jQuery(this).find('canvas').stop().animate({opacity:1}, speed);
});

});
}
[/code]

Regards,
Valentin