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