XML jQuery Problem
- by Llamabomber
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>