RE: Event binding/this problem
"Seb Frost" <[email protected]>
| Newsgroups | gmane.comp.web.dom.wdf |
|---|---|
| Message-ID | <[email protected]> |
thankyou guys, all been very helpful. As additional question is there a way that I can abort any timeouts currently running? Failing that how can I check if the mouse is over a certain element in the code, none.mouseover seems too simple and doesn't work! -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Ian Petersen Sent: 09 November 2005 15:21 To: [email protected] Subject: Re: [wdf-dom] Event binding/this problem > The problem is that when you set the timeout, the "this" object isn't > your original node anymore. Just to add a little additional information, at the time that "this.className=this.className.replace(" over", "");" gets executed, "this" refers to the window object, which is very rarely useful.... Ian -- Tired of pop-ups, security holes, and spyware? Try Firefox: http://www.getfirefox.com Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links ------------------------ Yahoo! Groups Sponsor --------------------~--> Get fast access to your favorite Yahoo! Groups. Make Yahoo! your home page http://us.click.yahoo.com/dpRU5A/wUILAA/yQLSAA/9rHolB/TM --------------------------------------------------------------------~-> Unsubscribe [email protected] List info http://www.quirksmode.org/dom/list.html Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/wdf-dom/ <*> 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/