From: rlb <bl...@wi...> - 2000-11-05 23:12:48
|
Robert, Thanks for the explanation, I'm up to the DynDocument tutorial. Robert Rainwater wrote: > There is a paramater on the include that allows you to pass an > alternate path. So: > > DynAPI.include('mystuff.gui.button.js','../mywidgets/') I figure there was something along these lines to store things separately. Can this work between servers, as in two different ones? The whole Http path? Actually this might solve my problem with not wanting to screw up the CORE scripts with my own or anyone else's, by separating them across servers. Never mind me, I'm just thinking out loud. > The path that you pass is the root path. So inside there you would > need mystuff/gui/mystuff.gui.button.js. > > There's been some talk that the filename shouldnt have the path in it > as well. That could be changed in the future. This struck me as a bit odd when I first look at it, it did make things more intuitive though while I was trying to find stuff. Maybe after there is more documentation the longer names would have less importance. I wonder if this resource lookup configuration shouldn't be wholly server side, as in using something similar to the "cgi-bin" directory, only something like "js-resource" or some such. then less work would be required for changing lookups in the calls from eh HTML pages. Just a thought. > There is also a function addLibrary(name,files). Are these looked at, in a sequence, as in does the order count when listing them in the calling lines. > Where name is the > name like gui and the files are the last part of the file names, like > button.js as an array like addLibrary('mygui',['x.js',y.js']). Wouldn't also be wise to get rid of the ".js" part of the name, or is this required by the browsers for interpretation? > You can use this to allow you to say DynAPI.include('core.gui.*'). > > \\Robert > > -- > > _______________________________________________ > Dynapi-Help mailing list > Dyn...@li... > http://lists.sourceforge.net/mailman/listinfo/dynapi-help -- -+-+-+-+-+- bobb http://64.33.167.222/ |