[OpenLayers-Dev] Dynamic Build Technique -- from script.aculo.us

Erik Uzureau euzuro at gmail.com
Thu Oct 26 07:17:04 EDT 2006

I was looking through the script.aculo.us wiki this morning and came accross
this bit on how they allow optional loading of different components. Seems like
something we might want to look into for OpenLayers.


from: http://wiki.script.aculo.us/scriptaculous/show/Usage

3. Link to script.aculo.us

Link to the scripts in the head of your document:

<script src="javascripts/prototype.js" type="text/javascript"></script>
<script src="javascripts/scriptaculous.js" type="text/javascript"></script>

By default, scriptaculous.js loads all of the other javascript files
necessary for effects, drag-and-drop, sliders, and all of the other
script.aculo.us features. If you don't need all of the features, you
can limit the additional scripts that get loaded by specifying them in
a comma-separated list, e.g.:

<script src="scriptaculous.js?load=effects,dragdrop" type=...></script>

The scripts that can be specified are:

    * builder
    * effects
    * dragdrop
    * controls
    * slider

Note that some of the scripts require that others be loaded in order
to function properly.

More information about the Dev mailing list