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 Thu, 05 Sep 2002 13:10:16 GMT
Yes!

aliirfan@umapinc.com wrote:

> 
> 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 <cjolif@ilog.fr>
> 
> 09/04/2002 03:44 AM
> Please respond to "Batik Users"
> 
>        
>         To:        Batik Users <batik-users@xml.apache.org>
>         cc:        
>         Subject:        Re: eventListener Question
> 
> 
> 
> 
> 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
> 
> 
> 


-- 
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