DNJ Scripts loader

One important module in DNJ is the script loader, this module allows you to build a minified JQuery+JQueryUI package on the fly.
You can easily decide witch JQuery plugins and witch JQuery UI components will be loaded
The script loader is an http handler that you can call in a <script> tag.

The following syntax will load ALL JQuery + JQuery UI scripts

<script type="text/javascript" src="DNJResources.axd?load=jquery,ui[all],fx[all]"></script>


if you need to load only some parts of JQuery UI for example, you can use this syntax 

<script type="text/javascript" src="DNJResources.axd?load=jquery,ui[tabs,datepicker],fx[all]"></script>


and for more granularity you can use this syntax (all possible values are represented) :

<script type="text/javascript" src="DNJResources.axd?load=jquery,cookie,ui[accordion,core,datepicker,dialog,draggable,droppable,position,progressbar,resizable,selectable,slider,sortable,stackfix,tabs],fx[blind,bounce,clip,core,drop,explode,fold,highlight,pulsate,scale,shake,slide,transfer]"></script>
//note the presense of "cookie" after jquery, this will tell the loader to load cookie plugin aswell,
at this time only cookie plugin can be loaded this way, other plugins will be available in next releases.


Note : Since DNJ v0.4.0, if you put a DNJ webcontrol in your page it will automatically load the needed jquery resources, so you no more need to use

DNJResources.axd?load=...  , this feature is still in test phase. If you encounter any problem or missing script using the method described above should resolve it.

The script loader is also used to generate javascript stubs for the DNJ RPC module (see next section). the syntax is : 

<script type="text/javascript" src="DNJResources.axd?conf=path/to/dnjrpc.conf.js"></script>		  


you can combine the options like this

<script type="text/javascript" src="DNJResources.axd?conf=path/to/dnjrpc.conf.js&load=jquery,..."></script>