xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christophe Jolif <cjo...@ilog.fr>
Subject Re: eventListener Question
Date Wed, 04 Sep 2002 07:44:12 GMT
The method of the object as to be named "handleEvent(evt)".

aliirfan@umapinc.com 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: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message