Of course Ajax works in IE. IE is the browser that invented Ajax
(XMLHttpRequest)!

Troubleshooting a code snippet is a lost cause. ;-) Can you post a link to a
test page?

A couple of tips, not directly related to the IE problem...

async: false is an extreme measure that should be avoided if possible. It
locks up the user interface of all browsers running in the same thread. Do
you have to do that?

It sounds like you are in control of the PHP code that generates the XML, is
that right? If so, you would be better off generating JSON instead of XML.
It's easier to work with JSON, and much faster too.

-Mike

> From: David Andrews
> 
> 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

Reply via email to