IE not triggering jQuery Ajax success

Posted by dayosuperstar on Stack Overflow See other posts from Stack Overflow or by dayosuperstar
Published on 2009-04-23T16:32:59Z Indexed on 2010/06/17 20:03 UTC
Read the original article Hit count: 157

Filed under:
|
|

Hello all,

I'm working on a script to load some images async using jQuery.

Here is a code snippet of the function that loads the images -

try{
for(img in imgsArray){
	$.ajax({	
		async: false,
		type: "get",
		url:imgsArray[img],
		success:function(imgFile){
			alert("success");
			//do something useful
			},
			error:function(XMLHttpRequest,status,error){
			//do nothing
		}
	});//ajax
} 
}
catch(e){
    //oops
}

I have tested this in Firefox, Webkit (Safari,Chrome) and it works.

The images are in a folder on the server and I'm using jQuery 1.3.

any ideas?

Much appreciated.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about AJAX