RE: dynamically create and insert SVG into an HTML page

I was afraid of that.  So I have to load each and every tag and attribute
manually, right?  This will probably be a huge performance slowdown.

thanks
Justin

-----Original Message-----
From: Josh Zeidner [mailto:jmz_phylogenic@hotmail.com]
Sent: Tuesday, June 13, 2000 10:46 AM
To: Justin Friedl
Subject: RE: dynamically create and insert SVG into an HTML page


thats a tricky problem.

I think you would have to load it into the DOM manually.  You cannot just 
plug in an embed tag dyanimcally using javascript and expect it to work( i 
think ).  You will have to create placeholder embeds and load it into the 
embeds DOM tree via DOM api.

-josh z



>From: Justin Friedl <justin.friedl@aspentech.com>
>To: 'Josh Zeidner' <jmz_phylogenic@hotmail.com>
>Subject: RE: dynamically create and insert SVG into an HTML page
>Date: Tue, 13 Jun 2000 13:34:26 -0400
>
>thanks, how? Because I can't figure out how to take dynamically created SVG
>and insert it into an <embed> tag in HTML.  I want to just take the 
>unparsed
>SVG-XML data and insert somehow into an <embed> tag.  The only way I can
>figure out how to insert SVG is through a "src" attribute of <embed> which
>references a .svg file.  This is ok but does not solve the problem of
>dynamically creating an entirely new SVG-XML image on the client.
>
>Here's my scenario:
>XML is downloaded to the client(browser IE 5.0/5.5) along with several XSLT
>transformation stylesheets (for different views of the data).  On the 
>client
>one stylesheet is applied(through javascript in an HTML page) to the XML
>data(using MSXML3).  The output of this is SVG-XML data.  The SVG-XML data
>is then displayed.  The user can click on different views in which case
>different XSLT stylesheets are applied to the original XML and new SVG-XML
>is output to be viewed.
>
>any suggestions on how to dynamically put the SVG-XML data in the HTML 
>page?
>
>thanks
>Justin
>
>
>-----Original Message-----
>From: Josh Zeidner [mailto:jmz_phylogenic@hotmail.com]
>Sent: Tuesday, June 13, 2000 10:18 AM
>To: Justin Friedl
>Subject: Re: dynamically create and insert SVG into an HTML page
>
>
>
>yes.  with javascript.
>
>-Josh Zeidner
>
>
>
> >From: Justin Friedl <justin.friedl@aspentech.com>
> >To: "'www-svg@w3.org'" <www-svg@w3.org>
> >Subject: dynamically create and insert SVG into an HTML page
> >Date: Tue, 13 Jun 2000 12:02:35 -0400
> >
> >Is it possible to dynamically create and insert SVG into an HTML page or
> >overwrite an existing SVG image all on the browser?
> >
> > > 	Justin Friedl
> > > 	Software Engineer
> > > 	Web and eCommerce
> > > 	Supply Chain Division
> > > 	Aspen Technology
> > > 	19204 North Creek Parkway
> > > 	Bothell, WA 98011
> > > 	425-492-2379
> > > 	425-492-2125 (fax)
> > > 	mailto:justin.friedl@aspentech.com
> > >
> > >
> >
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Received on Tuesday, 13 June 2000 13:51:24 UTC