The following are the various 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 Functions.
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, Functions, 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, Functions, 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. The
Examples.htm page's controller logic is externally defined in
the Examples.js file that is automatically loaded whenever
the Examples page is requested.
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