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