Peter Peter - 3 years ago 169
jQuery Question

IE not triggering jQuery Ajax success

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 -

for(img in imgsArray){
async: false,
type: "get",
//do something useful
//do nothing

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?

Answer Source

A simple fix of this problem is to provide the jQuery setting dataType : 'text' or dataType : 'xml' or dataType : 'json' or any other available response type.

I had same problem, but it's working fine after specifying the dataType setting in the .ajax call.

IE is really not an intelligent browser, it doesn't assume the default value string.

Try it... good luck.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download