try onmouseup, or onmousedown..
----- Original Message -----
From: "GORTSILAS ANDREAS" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 06, 2001 12:25 AM
Subject: RE: [Dynapi-Help] Events on Html elements in NS...
> Yes,...
>
> but what about the other events???
>
> It must be a more generic solution to this!
>
> Andreas
>
> -----Original Message-----
> From: slasherx2 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 06, 2001 10:16 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [Dynapi-Help] Events on Html elements in NS...
>
>
> I noticed this also... I got around this by using a graphic and wraping it
> with <a href="javascript:myfunction();"></a>
>
> hope this helps. this works in both IE and Netscape.
>
> Terry
>
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of GORTSILAS
> ANDREAS
> Sent: Monday, March 05, 2001 10:51 PM
> To: Dynapi-Help Mailing List (E-mail)
> Subject: [Dynapi-Help] Events on Html elements in NS...
>
>
> In this code:
> .....
> DynAPI.onLoad=function() {
> myLayer = new DynLayer()
> myLayer.setSize(100,100)
> myLayer.setBgColor('#c0c0c0')
> myLayer.moveTo(100,100)
>
> myListener = new EventListener(DynAPI.document)
> myListener.onclick=function(e) {
> alert('click');
> }
>
> myLayer.setHTML('<form><input type=button value=test
> onclick="DoOnClick()"></form>');
> this.document.addChild(myLayer)
> myLayer.addEventListener(myListener)
> ....
>
> the DoOnClick() event handler gets fired in IE but NOT in NS...
>
> the onclick() event handler (with the alert) gets fired in IE but NOT in
NS
> (for the button only)...
>
> I try the:
> if (window.Event) document.captureEvents(Event.CLICK); // NS
4x
> document.onclick = DoOnClick2;
>
> and the DoOnClick2() event handler executed!
>
> Do I have to do it for all the events???
>
> or I miss something (from the API)?
>
> Thanks
>
> Andreas Gortsilas
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.236 / Virus Database: 114 - Release Date: 3/5/01
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.236 / Virus Database: 114 - Release Date: 3/5/01
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help
---
Outgoing mail is certified Virus Free by AVG Free Edition
Download at: http://www.grisoft.com/html/us_index.cfm
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.231 / Virus Database: 112 - Release Date: 2/12/01
_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help