evt.target is the element that was the target of the event
On Nov 10, 2011 5:15 PM, "Narcis" <[email protected]> wrote:

> **
>
>
> I made a windows application which display a svg doc in an IE webbrowser
> control, with ASV.
> My svg doc have this functions:
>
> <script type="text/ecmascript">
> <![CDATA[
> function changeColor(evt) {
> evt.target.setAttributeNS(null,"fill","rgb(255,0,0)"); }
> ]]>
> </script>
>
> So when I click a svg element it's color change to red. How can I tell to
> my application what object I just clicked? How can I send to my app the
> evt.target.getAttributeNS(null,"id") value?
>
> I used copyToClipboard(evt.target.getAttributeNS(null,"id")); and it
> works, but in IE only, not in my webbrowser control :(
> Do you have some suggestion? I just spent hours on google searching for
> this, without success.
>
> Thank you.
>
>  
>


[Non-text portions of this message have been removed]



------------------------------------

-----
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> 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/

Reply via email to