Thanks Mike and JK,

A sample url is here.. 

www.foobar.me.uk/test/example.htm

To answer your questions: 

1. This does seem to be required as it loads the image names into an array
which is then used to populate the image src in the DOM. If I leave async
true then I get empty images for the first couple of transitions.

2. Thanks for the tip on JSON - not familiar with it but will do some
research - cheers.

-----

If you open the above link in firefox then you will see some image
transitions based on an array populated from my ajax request - in IE that
array does not get populated as it looks like the ajax request is not
getting called.

Also - don't get me wrong I'm not anti IE - just asking! ;)

Cheers
Dave





-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Michael Geary
Sent: 30 November 2008 03:10
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: .ajax and ie7?


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