From: Brandon M. <tr...@us...> - 2000-11-16 21:39:28
|
Although that's a novel idea, it would require a "standard" in writing widgets, which we all know, has created a long standing problem in that: - one side says development should be free-form. No rules to develop the app. - the other says that there should be standards so that widgets work together with little to no changes in code. Well... I say just leave things the way they are. don't bother creating a require, as it would require that all scripts that are included within the 'include' method notify the API that it has completed loading. Only IE5+ can truely detect successful completion of an external script. I say keep the list of "include" statements at the top for every required file. It allows a user viewing an application for the first time to know exactly everything that is needed to run the app. This shouldn't be C++ include within include within include.... simple one-pass include should suffice. ----- Original Message ----- From: "Robert Rainwater" <rra...@ya...> To: "Pascal Bestebroer" <dyn...@li...> Sent: Thursday, November 16, 2000 3:01 PM Subject: Re[3]: [Dynapi-Dev] Default > > You could have a DynAPI.require method that will add required files. > Then when the first file is included, it will include all of the > required files. I've done something similar to this before and it > worked quite easily. Also, this allows you to set the required files > in the widgets. That way if someone wanted to use the button widget, > the only file that have to include is the button.js file and all of > the others would automatically be included. > > > \\Robert > -- > rra...@ya... > > > I think the DynAPi is already very modular, you don't need to use events or > > dragging objects. > > The only problem we're having is that you need to include dyndocument and > > dynlayer, because dynlayers can only be added to dyndocuments.. but the rest > > isn't that bad is it? > > > > Brandon, care to share your ideas ? > > > > > > > > Pascal Bestebroer > > pb...@oi... > > http://www.oibv.com > > > > > > > _______________________________________________ > Dynapi-Dev mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-dev |