You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Allan Reffson Granja Lima <al...@atlantico.com.br> on 2003/03/20 13:28:51 UTC
tag
I´ve tryed to add in SVG file other SVG file through ecamascript using
<image> tag.
When I load the SVG in Adobe SVG Viewer the script works and load the ohter
SVG.
However, when I load the same SVG in Batik/Squiggle nothing happens!
A sample of the code:
var objSVG = document.createElement("image");
objSVG.setAttribute("id", "myid");
objSVG[objSVG.length-1].setAttributeNS("http://www.w3.org/1999/xlink","href"
, "mysvg.svg");
var draw = document.getElementById("mainSVG");
draw.appendChild(objSVG);
Thanks for any help! :)
Allan.
+++++++++++++++++++++++++++++++++
+ Allan Reffson G. Lima +
+ Email: allan@atlantico.com.br +
+ Telefone: 85 - 216-7828 +
+ Analista de Sistemas +
+ Instituto Atlântico +
+ Fortaleza - Ceará - Brasil +
+++++++++++++++++++++++++++++++++
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.462 / Virus Database: 261 - Release Date: 13/3/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org
RE: tag
Posted by Thomas E Deweese <th...@kodak.com>.
>>>>> "ARGL" == Allan Reffson Granja Lima <al...@atlantico.com.br> writes:
ARGL> I´ve tryed to add in SVG file other SVG file through ecamascript
ARGL> using <image> tag. When I load the SVG in Adobe SVG Viewer the
ARGL> script works and load the ohter SVG. However, when I load the
ARGL> same SVG in Batik/Squiggle nothing happens!
ARGL> A sample of the code:
ARGL> var objSVG = document.createElement("image");
You probably want to create an 'svg' image element as opposed to
an image element in the default (or no-name) namespace, try:
var objSVG = createElementNS("http://www.w3.org/2000/svg", "image");
ARGL> objSVG.setAttribute("id", "myid");
ARGL> objSVG[objSVG.length-1].setAttributeNS("http://www.w3.org/1999/xlink","href"
ARGL> , "mysvg.svg");
ARGL> var draw = document.getElementById("mainSVG");
ARGL> draw.appendChild(objSVG);
ARGL> Thanks for any help! :)
ARGL> Allan.
ARGL> +++++++++++++++++++++++++++++++++ + Allan Reffson G. Lima + +
ARGL> Email: allan@atlantico.com.br + + Telefone: 85 - 216-7828 + +
ARGL> Analista de Sistemas + + Instituto Atlântico + + Fortaleza -
ARGL> Ceará - Brasil + +++++++++++++++++++++++++++++++++ --- Outgoing
ARGL> mail is certified Virus Free. Checked by AVG anti-virus system
ARGL> (http://www.grisoft.com). Version: 6.0.462 / Virus Database:
ARGL> 261 - Release Date: 13/3/2003
ARGL> ---------------------------------------------------------------------
ARGL> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
ARGL> For additional commands, e-mail: batik-users-help@xml.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org