Hello, I tried to load a .svg vector graphic with $.ajax, which works perfectly well in FF and Opera, but not in Internet Explorer.
My script looks like this: $(document).ready(function(){ $.ajax({ type: "GET", url: "test.svg", dataType: "xml", success: function(data){ parseSVG(data); }, error: function(xhr, textStatus, errorThrown){ alert (textStatus); } }); }); function parseSVG(svg){ /* function that parses the DOM of the file */ } If I run this in IE7, the error function is called. The alert box then reads "parsererror". The svg-file looks like this (renaming it into .xml makes no difference): <?xml version="1.0" encoding="UTF-8" standalone="no"?> <svg> <path d="M 167.4375,684.375 L 165.96875,685.71875 z" id="blablabla" style="fill:#79b63f;fill-opacity:1; ..." /> <path ... /> <path ... /> </svg> I assume, that IE doesn't like something about the xml, but I don't know what...