API DOCS
DOCS & TUTORIALS »
API DOCS »
xajax_core »
plugin_layer »
xajaxScriptPlugin.inc.php »
xajaxScriptPlugin
Class: xajaxScriptPlugin
Contains the code that can produce script and style data during deferred script
generation. This allows the xajax generated javascript and style sheet information
to be loaded via an external file reference instead of inlined into the page
source.
variables
functions
xajaxScriptPlugin
function xajaxScriptPlugin()
Construct and initialize the xajax script plugin object. During
initialization, this plugin will look for hash codes in the
GET data (parameters passed on the request URI) and store them
for later use.
configure
function configure($sName, $mValue)
Sets/stores configuration options used by this plugin. See also:
setting for the following configuration options:
-
-
script deferral is in effect or not.
-
or not the script hash should be validated.
generateClientScript
function generateClientScript()
Called by the
(or style) declarations are needed.
This function will only output script or style information if the
request URI contained an appropriate hash code and script deferral
is in effect.
canProcessRequest
function canProcessRequest()
Called by the
process the current request. This will return true when the
requestURI contains an appropriate hash code.
processRequest
function processRequest()
Called by the
processed. This plugin will generate the javascript or style sheet information
that would normally be output by the other xajax plugin objects, when script
deferral is in effect. If script deferral is disabled, this function returns
without performing any functions.
