Welcome | News | QuickStart | Download | Support | About
ScriptLoader@sourceforge.net

QuickStart -> Configure module

Configuration files

lib.config:


a collection of core scripts

user.config:


a collection of customer scripts

Configure a module


you can import any script as a module from:

  • 1.A virtual path:


    load a virtual path of current website
    1. <Script Name="Core" Inherit="SyntaxHighlighter/shCore.js">  
    2. </Script>  
  • 2.A physical path:


    load a physical path of current server
    1. <Script Name="demo1" Inherit="c:/demo1.js"></Script>  
  • 3.A remoting website path:


    if you configrue a remoting website path,ScriptLoad will download the script from remoting server when script is initialized.
    1. <Script Name="jquery" Inherit="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js">  
    2. </Script>  
  • 4.A fake path:


    if you conifgrue a fake path with "none",ScriptLoad will just import it's dependent scripts
    1. <Script Name="Javascript" Inherit="none">  
    2.   <References>  
    3.     <Reference Name="Core"></Reference>  
    4.     <Reference Name="BrushJScript"></Reference>  
    5.   </References>  
    6. </Script>