Re: How do I view a string of SVG xml in a html page

hm.

you could create a html-file with a empty SVG file embedded.

then extract the svg-code from the textarea and add it to the SVG-DOM.

This approach only works in Internet-Explorer, since other Browsers scripting
engines can't connect to the Adobe Plugin, unfortunately.

I know, its not very elegant, but unfortunately plugins aren't well integrated
in with the Browser.

Andreas

Quoting Samuel Goldenbaum <samuel@3hgroup.com>:

> HI
> 
>  
> 
> I have a textarea where users paste svg/xml text into. I would like to
> let them preview the SVG without having to create a actual file from
> it.
> 
>  
> 
> How do I do this?
> 
>  
> 
> Thanks,
> 
>  
> 
> S
> 
> 



--
I don\'t know the key to success,
but the key to failure is trying to please everybody. 
-- Bill Cosby

----------------------------------------------
Andreas Neumann - Department of Cartography
Swiss Federal Institute of Technology (ETH)
ETH Hoenggerberg, CH-8093  Zurich, Switzerland
Phone: ++41-1-633 3031, Fax: ++41-1-633 1153
e-mail: neumann@karto.baug.ethz.ch
www: http://www.karto.ethz.ch/neumann/
SVG.Open: http://www.svgopen.org/
Carto.net: http://www.carto.net/

Received on Wednesday, 21 January 2004 23:27:31 UTC