ajile Configuration


The following are the various configuration options that can be turned on/off when loading ajile:
Syntax:
   <script src="com.iskitz.ajile.js?option,option,option,..." type="text/javascript"></script>


Back to Documentation



cloak: The cloak option is provided to allow developers to conceal their code at runtime. The cloak option is enabled by default. States: cloak - Activates ajile's source code hiding functionality for all scripts and modules used within the current page. cloakoff - Deactivates ajile's source code hiding functionality allowing normal source code viewing. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Enable cloaking <script src="com.iskitz.ajile.js?cloak" type="text/javascript"></script> // Enable cloaking <script src="com.iskitz.ajile.js?cloakoff" type="text/javascript"></script> // Disable cloaking See: - Ajile.EnableCloak() Back to Top or Documentation


debug: The debug option is provided to allow developers to observe ajile's debug information. The debug option is disabled by default. States: debug - Activates ajile's debugging functionality enabling logging of all operations performed using any of ajile's Directives or Methods. debugoff - Deactivates ajile's debugging functionality. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Disable debugging <script src="com.iskitz.ajile.js?debug" type="text/javascript"></script> // Enable debugging <script src="com.iskitz.ajile.js?debugoff" type="text/javascript"></script> // Disable debugging See: - Ajile.EnableDebug() - Ajile.ShowLog() Back to Top or Documentation


legacy: The legacy option is provided to enable/disable support for legacy (deprecated) Directives, Methods, and data types. The legacy option is disabled by default. States: legacy - Activates ajile's functionality to support deprecated features such as the JSImport, JSLoad, JSPackage, Import, Load, and Package directives and other deprecated functions and data types. legacyoff - Deactivates ajile's functionality to support use of deprecated Directives, Methods, or data types. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Disable legacy support <script src="com.iskitz.ajile.js?legacy" type="text/javascript"></script> // Enable legacy support <script src="com.iskitz.ajile.js?legacyoff" type="text/javascript"></script> // Disable legacy support See: - Ajile.EnableLegacy() Back to Top or Documentation


mvc: The mvc option is provided to encourage the use of the MVC design pattern and support developers already implementing it. This option simplifies web development by allowing developers to separate the view (HTML & CSS) from the controller (JavaScript). When used, ajile automatically loads the containing page's corresponding JavaScript controller script. That script may also use ajile's Directives to Import and Load other scripts and modules. The mvc option is enabled by default. States: mvc - Activates ajile's MVC support functionality, automatically loading the containing page's externally defined controller script. A working example of this is the API Examples page, /play/api/index.htm, which has /play/api/index.js as its controller script. mvcoff - Deactivates ajile's MVC functionality. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Disable mvc <script src="com.iskitz.ajile.js?mvc" type="text/javascript"></script> // Enable mvc <script src="com.iskitz.ajile.js?mvcoff" type="text/javascript"></script> // Disable mvc Back to Top or Documentation


mvcshare: The mvcshare option is provided to encourage the use of the MVC design pattern and support developers already implementing it. This option simplifies web development by allowing developers to separate the view (HTML & CSS) from the controller (JavaScript). When used, ajile automatically loads the site's shared JavaScript controller script (index.js) found in the same location as the ajile module. The index.js script may be used to provide data or perform operations common to multiple pages within a given site. The index.js script may also use ajile's Directives to Import and Load other scripts and modules. The mvcshare option is enabled by default. States: mvcshare - Activates ajile's shared MVC functionality, automatically loading the site's shared externally defined controller script, index.js. mvcshareoff - Deactivates ajile's shared MVC functionality. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Disable mvcshare <script src="com.iskitz.ajile.js?mvcshare" type="text/javascript"></script> // Enable mvcshare <script src="com.iskitz.ajile.js?mvcshareoff" type="text/javascript"></script> // Disable mvcshare Back to Top or Documentation


override: The override option is provided to allow similarly named types to override/cancel-out each other. By default overriding is disabled. States: override - Activates ajile's functionality to suppress naming conflicts, allowing similarly named types to override each other. overrideoff - Deactivates ajile's functionality to suppress naming conflicts prohibiting similarly named types from overriding each other and logging any such occurrences. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Disable overriding <script src="com.iskitz.ajile.js?override" type="text/javascript"></script> // Enable overriding <script src="com.iskitz.ajile.js?overrideoff" type="text/javascript"></script> // Disable overriding See: - Ajile.EnableOverride() Back to Top or Documentation


refresh: The refresh option is provided to support managing the refreshing/caching of loaded scripts and imported modules. It can be used to either work with or circumvent the browser's caching mechanism. The refresh option is disabled by default. States: refresh - Activates ajile's refresh functionality that generates fresh requests for each subsequently loaded script and imported module. refreshoff - Deactivates ajile's refresh functionality allowing the browse to control script/module caching. Examples: <script src="com.iskitz.ajile.js" type="text/javascript"></script> // Disable refreshing <script src="com.iskitz.ajile.js?refresh" type="text/javascript"></script> // Enable refreshing <script src="com.iskitz.ajile.js?refreshoff" type="text/javascript"></script> // Disable refreshing See: - Ajile.EnableRefresh() Back to Top or Documentation