|
There's two things,
Your first include
DynAPI..include('dynapi.api.*');
has a dot to many.
And you don't have a reference to the DynAPI object
because you are outside the onload event, so the event listener is being added
before the onload has fired.
Like this it should be ok:
-------------------code
start---------------------
<script language="JavaScript"
src="../dynapi2_51/dynapi/src/dynapi.js"></script>
<script language="Javascript"> DynAPI.setLibraryPath('../dynapi2_51/dynapi/src/lib/'); DynAPI.include('dynapi.api.*'); DynAPI.include('dynapi.event.*') DynAPI.include('dynapi.gui.label.js') DynAPI.include('dynapi.gui.list.js') DynAPI.include('dynapi.util.thread.js') DynAPI.include('dynapi.util.pathanim.js'); DynAPI.include('selectList.js','./') DynAPI. { select1 = new selectList('test') DynAPI.document.addChild(select1) DynAPI.document.events = new EventListener(DynAPI.document) DynAPI.document.> alert('test') } DynAPI.document.addEventListener(DynAPI.document.events) } </script>
|
- [Dynapi-Help] Catching events on the document Ben Empson
- Re: [Dynapi-Help] Catching events on the document Richard Bennett
- Re: [Dynapi-Help] Catching events on the document Robert Rainwater
