XML jQuery Problem

Posted by Llamabomber on Stack Overflow See other posts from Stack Overflow or by Llamabomber
Published on 2010-04-22T17:02:41Z Indexed on 2010/04/26 16:53 UTC
Read the original article Hit count: 256

Filed under:
|
|

This code for parsing my xml and appending via jquery seems to work great in every browser but Chrome (Mac only, the windows version of chrome works fine) and explorer. I'm not aware of any glaring issues in the code so I thought some fresh eyes might help. Anyone know what could be causing IE and Chrome on the mac to not append?

<script type="text/javascript" charset="utf-8">
$(document).ready(function()
    {
      $.ajax({
        type: "GET",
        url: "sitenav.xml",
        dataType: "xml",
        success: parseXml
      });

    function  parseXml(xml)
    {
      $(xml).find("GoogleAnalytics").each(function()
      {
        $("li#google_analytics").append('<ul><li>' + $(this).find("NavHeader").text()  + '</li></ul>');
      });
    }
});
</script>

© Stack Overflow or respective owner

Related posts about Xml

Related posts about cross-browser