Re: SVG within file with extension .xhtml/.html
Holger Jeromin <[email protected]> Sat, 06 Nov 2010 13:16:06 +0100
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
Otto Wyss schrieb am 06.11.2010 10:53: > Robert Longson wrote: >> SeaMonkey 2.0.8 does not support html5 so you can't embed SVG into >> html using markup. Your options are either to use the DOM to add SVG > Thanks a lot. Can you give me any hint how to change the code using the DOM so I > can work on the code in my environment? The SVG code isn't from me so I'm not > very familiar but I'd like to extend it so one day it may become usable for OSM. short description for the task in javascript: Get the svg data via XMLHttpRequest. Put the responseText into the DOMParser https://developer.mozilla.org/en/DOMParser (supported in all SVG capable browsers (incl ie9)). appendChild the content into your website. > Besides is there a usefull tutorial about SVG? I'd rather don't like to dig into > W3C documents, they are more or less unreadable. Aggreed, but a must see is: http://www.w3.org/Graphics/SVG/IG/resources/svgprimer.html -- best regards Holger