How can I get my widget object instead of the window object in my 
event handler?

I have a Batik SVG application using widgets, and the textbox 
ECMAScript object attaches an event handler to the textbox rect 
element with:

this.textboxRect.addEventListener("click",this.handleEvent,false);

The "textbox".handleEvent(evt) method does receive the event ok, but 
the "this" is now the window object, when I was expecting the "this" 
to be the textbox widget code object.

How can I get the reference to the textbox object (not the rect 
element) inside the the handleEvent function?

The evt.target and evt.currentTarget return the rect element, but I 
need the textbox object so I can make the widget respond to the 
event.

 







-----
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:
    mailto:[EMAIL PROTECTED] 
    mailto:[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