The error message does indicate that it does not like something about XML.
Try folowing. 1. Save xml on your drive and simply open it with IE. See if it gives you an error. 2. What does errorThrown points to? 3. The standalone="no" not sure it's valid... George. On Nov 25, 3:56 pm, w-o-m <[EMAIL PROTECTED]> wrote: > That's true. But a SVG is still just an XML file. I don't need IE to > draw the grapic, I just need the data. My script, btw, doesn't work > with other XML's either. > > > > ricardobeat wrote: > > IE7 doesn't support SVG afaik. > > > On Nov 25, 6:08 am, w-o-m <[EMAIL PROTECTED]> wrote: > > > 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...- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery (English)" group. To post to this group, send email to jquery-en@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/jquery-en?hl=en -~----------~----~----~----~------~----~------~--~---