Hi,

Thanks for the reply. After some investigation, I found that in my xml
file it said:

<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/
rss2enclosuresfull.xsl"?>

So just for kicks I put dataType:"text/xsl"

And I think I made progress, but I'm not sure. Because now, it creates
the div.panel-previews for each xml node, but for some reason doesn't
fill in any of the children data. And now in firefox, where it was
working perfectly before, is only reading certain children items.

Is there an explanation for this?

Thanks,

Connor



On Jun 16, 1:19 pm, James <james.gp....@gmail.com> wrote:
> 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