W3C home > Mailing lists > Public > www-svg@w3.org > January 2004

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

From: Andreas Neumann <neumann@karto.baug.ethz.ch>
Date: Thu, 22 Jan 2004 05:26:20 +0100 (CET)
To: Samuel Goldenbaum <samuel@3hgroup.com>
Message-ID: <1074745580.400f50ecc3be3@karmail.ethz.ch>
Cc: www-svg@w3.org


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.


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

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:46:57 UTC