API DOCS

DOCS & TUTORIALS » API DOCS » xajax_core » xajax.inc.php » xajax » configure

Function: configure


function configure($sName, $mValue)

Parameters:

Options include

javascript URI
(string) The path to the folder that contains the xajax javascript files.

errorHandler
(boolean) true to enable the xajax error handler, see bErrorHandler

exitAllowed
(boolean) true to allow xajax to exit after processing a request. See bExitAllowed for more information.


Configuration options

Xajax passes all $xajax->configure() calls to all registered plugins. Even when a certian command is listed as an available option for an other class as xajax.inc.php, you have to call $xajax->configure(). Some options need to be configured for couple of classes at once in order to work properly. Luckily, Xajax takes care of that for you!

xajaxLanguageManager.inc.php

language

xajax.inc.php

errorHandler
exitAllowed
cleanBuffer
logFile

xajaxArgumentmanagerinc.php

decodeUTF8Input (bool)
characterEncoding (string)

xajaxResponseManager.inc.php

characterEncoding
outputEntities

xajaxIncludePlugin.inc.php

javascript URI (string)
javascript files (array)
scriptDefferal (bool)
requestURI (string)
statusMessages (bool)
waitCursor (bool)
version (string(
defaultMode (string sync/async)
defaultMethod (string POST/GET)
debug (bool)
verboseDebug (bool)
scriptLoadTimeout (int)
useUncompressedScripts (bool)
deferScriptGeneration (bool / string 'deferred')
language (string)
responseQueueSize (int)

xajaxFunctionPlugin /xajaxEventPlugin / xajaxCallableObject / xajaxScriptPlugin

wrapperPrefix
scriptDefferal
deferScriptGeneration (bool / string 'deferred')

Examples

To configure the (web) path to xajax call:

Code: php

 
// assuming xajax is located in: www.yourdomain.com/libraries/xajax/
$xajax->configure('javascript URI','/libraries/xajax/');
 



To enable the debug mode use:

Code: php

 
$xajax->configure('debug',true);
 


 



XAJAX on SourceForge.net
Support this project Valid XHTML 1.0 Transitional