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...
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to