Hi,
Thanks Martin for the hint. The
var note= evt.target.parentNode.id;
works just fine. :)
Cheers.
Csorba
--- In [email protected], "Martin
Honnen" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected], "csorba_edith"
> <csorba_edith@> wrote:
>
> > I have a question about defining id's for multiple svg features.
> > I have quite a few paths, and I would like to group them and
display
> > the same Id when I move the mouse over one of the features. I.e.
> > <g id="x"..>
> > <path ...
> > <path ....
> > <...
> > </g>
> > But it seems that it displays the id only if I directly define it
for
> > each <path>, which would be too tidious for me. :(
>
> Do you use script to display the id? Or why is the id displayed?
> If you use script alike
> evt.target.id
> then to read out the id of the g element you could use
> evt.target.parentNode.id
>
-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my
membership"
----
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/svg-developers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/