Saturday, November 29, 2008

[jQuery] Re: .ajax and ie7?

Can you post a sample url? The code below looks fine, don't see why it
would fail.

It would be easy to step through it with an IE script debugger to see what's
up.

JK

-----Original Message-----
From: jquery-en@googlegroups.com [mailto:jquery-en@googlegroups.com] On
Behalf Of David Andrews
Sent: Saturday, November 29, 2008 6:31 PM
To: jquery-en@googlegroups.com
Subject: [jQuery] .ajax and ie7?


Hello all,

I am using .ajax to populate an array via a PHP generated XML file

//snip

$.ajax({
url : "readimages.php",
async : false,
data : "imagefolder=" + folderName + "&imagePrefix=" +
imagePrefix,
success : function(xml)
{
$(xml).find('file').each(function()
{
imageList.push($(this).text());
});
}
});

This works perfectly in FF but the success function does not get called when
run in IE7... should this code work ok or is IE a lost cause?

Cheers
Dave

No comments: