Assuming that you know what the function context (this) is in an event handler is tricky business.
You can use jQuery event handling (highly recommended) which takes care of it for you, or learn to use closures to bind the function context to always be what you want. The latter is what jQuery's proxy() method does (as well as Prototype's bind()).
Essentially, you wrap the handling function in another, that calls the handler with a function context of your choosing, and establish the wrapper function as the event handler. Give the code a try and see if you can get it to work.