IE seems to have a problem with returning the correct header for the
XML content-type. You'd have to either have the server force the
content-type text/xml for .xml files, or if generated through a script
(e.g. PHP) have the script set the header content-type when serving
the XML.
I've came upon a Javascript function that can take the returned XML
and make it XML parse-able, but I can't find it. If you do a search on
the jQuery groups, you'll come across a lot of posts regarding this IE
and XML issue.

On Jun 16, 8:03 am, cz231 <cz2...@gmail.com> wrote:
> Hi,
>
> I've been working on a project that uses xml. But for some reason, it
> does not work in internet explorer. And after hours and hours of
> debugging, I cannot figure out why. I would deeply appreciate it if
> you could help me. I hope this isn't asking too much, but what is
> wrong from the code below? (I'm hoping I'm just blind and someone sees
> it right away)
>
> $(function() {
>
>             $.ajax({
>                 type: "GET",
>                 url: "videos.xml",
>                 dataType: "xml",
>                 success: function(xml) {
>
>                     $(xml).find('item').each(function(){
>                         var thumb = $(this).children
> ("description").text();
>                                                 var title = $
> (this).children("title").text();
>                                                 var text = $
> (this).children("content").text();
>                                                 var link = $
> (this).children("link").text();
>                         $('<div class="panel-preview"></div>')
>                             .html( thumb + '<h1>' + title + '</
> h1><p>' + text + '</p><a class="articlelink" title="Click here to
> watch the video here">Watch</a><br><a href="' + link + '"
> class="articlelink" title="Click here to read more">View Article</a>')
>                             .appendTo('.accordion-padding');
>                     }); //close each(
>                 }
>             }); //close $.ajax(
>
>     }); //close $(
>
> Thankyou very much,
>
> Connor

Reply via email to