Christophe,
Thanks for your reply. I still have one question what if I have more than one method in my class.
Do I still have to name it handleEvent(evt)?
Irfan Ali
Software Developer
Universal Map, Inc.
www.universalmap.com
Ph: (517)655-1759
| Christophe Jolif <[EMAIL PROTECTED]>
09/04/2002 03:44 AM
|
To: Batik Users <[EMAIL PROTECTED]> cc: Subject: Re: eventListener Question |
The method of the object as to be named "handleEvent(evt)".
[EMAIL PROTECTED] wrote:
>
> Hello everyone,
>
> I was wondering if javascript eventlistener works with methods. Let me
> explain what I am trying to do.
>
> I know that we can do following in javascript.
>
> var something = document.getElementById("....");
> something.addEventListener("click", someFunction, false);
>
> function someFuntion(evt)
> {
> ...........................
> ...........................
> ...........................
> }
>
> Now what if someFunction() is a method of some class. So that it looks
> like this.
>
> function someClass()
> {
> function someFunction(evt)
> {
> ...........................
> ...........................
> ...........................
> }
> }
>
> what changes do I need to make in my addEvenListener to call this
> method? Is it implemented in javascript or not?
>
> Thanks in advance,
> Irfan Ali
--
Christophe
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
