The argument in  new EventListener(target)
is the target of the event.
you may then access this with evt.getTarget() within the event code.

As for a resize listener for The document itsef.. there already is on..
What you want to do is call
DynAPI.document.addResizeCode('a string containing javascript")
then whenever the document is resized, you javascript will be executed.
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, June 14, 2002 7:30 AM
Subject: [Dynapi-Help] EventHandler construstor parameter


> Hi,
>
> When creating an EventListener, you can privide an argument to the
> constructor.
> What is it used for ?
>
> I don't see any difference between
>
> documentListener=new EventListener()
> DynAPI.document.addEventListener(documentListener)
>
> and
>
> documentListener=new EventListener(DynAPI.document)
> DynAPI.document.addEventListener(documentListener)
>
>
> Thanks in advance
>
>
> _______________________________________________________________
>
> Don't miss the 2002 Sprint PCS Application Developer's Conference
> August 25-28 in Las Vegas -
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/dynapi-help
>


_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to