From: Bill W. <bil...@us...> - 2000-12-06 20:28:09
|
You know how Perl has "require"? Wouldn't it be useful to have DynAPI have a require method. That way, at the top of a widget that has to have a Button, LoadPanel and ScrollPanel, I could say: DynAPI.require('Button', 'LoadPanel', 'ScrollPanel') and it would make sure that I got the modules, even if I didn't proclaim it in the HTML file with: <script language=javascript> DynAPI.setLibraryPath('../js/lib') DynAPI.include('Button.js') DynAPI.include('LoadPanel.js') DynAPI.include('ScrollPanel.js') DynAPI.include('MenuBoxWidget.js') </script> Instead I could use: <script language=javascript> DynAPI.setLibraryPath('../js/lib') DynAPI.include('MenuBoxWidget.js') </script> which would automatically include the right things. Maybe this is what that loadLibrary thing is? I wouldn't even know how to go about it at this point. -bw ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 |