I was getting annoyed with the loading times and the need for including
every file manually.
I also wanted a method of loading code dynamically and on an as needed
basis so that I didn't need to reload the page just to load a new
widget.
I'm almost there. (threads in ns4 are giving me problems at the moment)
The attached code is a highly altered version of the api. It is not
using the most recent version but I have attempted to use the latest
code without rewritting the code around the DynAPIX structure.
I also wanted a more logical method of structuring the objects and
widgets.
All code is now included in the DynAPI.onLoad method. this means that
all the code is executed after the page has finished rendering the
inline content.
I am in the process of converting all of my widgets across. I have
successfully been able to test for a particular object, and if it is not
loaded, load it before creating the new widget.
This can be seen in the api.create example in that only the api.layer.js
file is needed. The code them automatically loads the required
DynGUI.Object and DynGUI.Document objects.
All of the base objects are now referenced using the DynGUI.xxx
method. This should make it possible to simply delete these onUnLoad.
All event handling is done in the DynEvent section. All various types
of event code now branch of this single object. This also should allow
for deletion and memory being freed up.
Be Warned: NS6 is still not supported at the moment and neither is
MacIE.
I can make the more complete code available to anyone who wants it, just
email me.
--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
afroapi_demo.zip