I've been messing with Dan's new dynapi code and have made a few minor updates. Dan posted a url to his new code base a while back. I thought I would attach it so people could start looking at how the new structure will be. This will give widget developers a chance to begin working on the new widget structure. I've attached a simple button widget that could be used as a guide to creating a widget.
Here are the few changes I've made to dan's code: - Replaced the is object with DynAPI.ua across the board - Fixed DynLayer constructor (test for null not same as undefined in mozilla/was causing setHTML to print undefined in mozilla) - Removed DynImage crap. You can still use the trimmed down version the same way (may need some work) - Moved addpackage/library to dynapi.js. You can now use package files to set the library names (look at package.dynapi.js) - Added test in debug.js to keep from throwing error - maybe something else too ? I believe Dan is going to rewrite the events in the next release, but this should give you a good start to start working with the next release. The only major problem needed to be addressed is the offsetWidth/Height problems in Mozilla. This is the main reason why the current widgets don't work in mozilla/ns6. Rob
The following section of this message contains a file attachment prepared for transmission using the Internet MIME message format. If you are using Pegasus Mail, or any another MIME-compliant system, you should be able to save it or view it from within your mailer. If you cannot, please ask your system administrator for assistance. ---- File information ----------- File: dynapi.zip Date: 27 Dec 2001, 13:13 Size: 17052 bytes. Type: ZIP-archive
dynapi.zip
Description: Zip archive