API DOCS
Function: printJavascript
function printJavascript($sJsURI="", $aJsFiles=array()
Parameters:
$sJsURI
(string, optional, deprecated) the path to the xajax javascript file(s) This option is deprecated and will be removed in future versions; insteadplease use configure with the option name 'javascript URI'
$aJsFiles
(array, optional, deprecated) an array of xajax javascript files that will be loaded via SCRIPT tags. This option is deprecated and willbe removed in future versions; please use configure with theoption name 'javascript files' instead.
See Also:
getJavascriptExamples
Code: php
<?php $xajax = new xajax(); $xajax->configure( 'javascript URI','/libs/xajax/' ); //... $xajax->processRequest(); ?> <html> <head> <?php $xajax->printJavaScript(); ?> </head> <body> ...
