[prev in list] [next in list] [prev in thread] [next in thread] 

List:       batik-users
Subject:    Re: Use Elements Attributes
From:       thomas.deweese () kodak ! com
Date:       2010-04-05 10:28:59
Message-ID: OFA99314C2.5EA7C3AF-ON852576FC.003964FF-852576FC.003994F1 () knotes ! kodak ! com
[Download RAW message or body]

--=_alternative 003994EB852576FC_=
Content-Type: text/plain; charset="US-ASCII"

Hi Mistercaste,

mistercaste <mistercaste@gmail.com> wrote on 03/26/2010 09:30:06 AM:

> Everything works good except that I can't set
> attributes on the signs that I place on the map
> (which are the "use" elements).

>     NodeList symbolList =
> canvas.getSVGDocument().getElementsByTagName(SVG_USE_TAG);// ???

    Is this really returning anything?  I think you need
to use getElementsByTagNameNS and use the SVG Namespace
(Element's need namespaces, attributes don't except for the
xlink attributes).


--=_alternative 003994EB852576FC_=
Content-Type: text/html; charset="US-ASCII"

<font size=2 face="sans-serif">Hi Mistercaste,</font>
<br>
<br><tt><font size=2>mistercaste &lt;mistercaste@gmail.com&gt; wrote on
03/26/2010 09:30:06 AM:<br>
<br>
&gt; Everything works good except that I can't set<br>
&gt; attributes on the signs that I place on the map<br>
&gt; (which are the &quot;use&quot; elements).<br>
</font></tt>
<br><tt><font size=2>&gt; &nbsp; &nbsp; NodeList symbolList =<br>
&gt; canvas.getSVGDocument().getElementsByTagName(SVG_USE_TAG);// ???<br>
</font></tt>
<br><tt><font size=2>&nbsp; &nbsp; Is this really returning anything? &nbsp;I
think you need</font></tt>
<br><tt><font size=2>to use getElementsByTagNameNS and use the SVG Namespace</font></tt>
<br><tt><font size=2>(Element's need namespaces, attributes don't except
for the</font></tt>
<br><tt><font size=2>xlink attributes).</font></tt>
<br><font size=2 face="sans-serif"><br>
</font>
--=_alternative 003994EB852576FC_=--
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic