Thanks for your quick reply...

What other events, except onresize, follow this convention:
  DynAPI.eventname = ....

Andreas

-----Original Message-----
From: Pascal [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 2:29 PM
To: [EMAIL PROTECTED]
Subject: RE: [Dynapi-Dev] Document resize event


1. Sorry for previous reply (empty one :)
2. Please use DynAPI-help  for .. uhm .. help

3.: you should catch the onresize event like this:

DynAPI.onResize=function() {

}

it's the window's onresize event..
but actually it's a good idea to also invoke those events on every
document.. :-)

I'll look into the onmouseup problem.. but seeing as Jordi is doing (has
done) a lot
of event code updating it will most likely be fixed.

Pascal Bestebroer ([EMAIL PROTECTED])
Software ontwikkelaar
Oberon Informatiesystemen b.v.
http://www.oibv.com

> -----Oorspronkelijk bericht-----
> Van: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]Namens
> GORTSILAS ANDREAS
> Verzonden: donderdag 18 januari 2001 13:18
> Aan: '[EMAIL PROTECTED]'
> Onderwerp: [Dynapi-Dev] Document resize event
>
>
> Hello,
>
> I am new to DynAPI ...
>
> I decided to try the dynacode dynapi distribution... the
> sources I use are
> 2001-01-13...
>
> I am trying to catch the onresize event of the browser window
> in order to
> keep a layer centered in the window frame...
>
> A sample code I use is:
>
>   DynAPI.onLoad=function() {
>     myListener = new EventListener()
>     myListener.onmouseup=function(e) {
>       alert('Document Clicked')
>     }
>     myListener.onmousemove=function(e) {
>       status="x="+e.x+" y="+e.y;
>     }
>     myListener.onresize=function(e) {
>       status="onresize";
>     }
>
>     DynAPI.document.addEventListener(myListener)
>   }
>
> When i try the above code the only event which works is the
> onmousemove...
>
> Can any one help me? Why is this happening?
>
> Thank you
>
> Andreas Gortsilas
> *********************************
> * Andreas Gortsilas
> * Systems Engineer - R&D
> * Quality Manager - R&D
> * Singular Computer Applications
> * Tel.: (301) 64 79 600 (688)
> * SMTP: [EMAIL PROTECTED]
> * HTTP://www.singular.gr
> *********************************
>
>
> _______________________________________________
> Dynapi-Dev mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to