API DOCS
Function: getJavascript
function getJavascript($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; instead please 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 will be removed in future versions; please use configure with the option name 'javascript files' instead.
See Also:
printJavascriptExamples
Code: php
<?php $xajax = new xajax(); // ... $xajax->processRequest(); $smarty->assign( 'xajax_javascript',$xajax->getJavaScript() ); ?>
Code: smarty
<html> <head> <title>Example template </title> {$xajax_javascript} </head> <body> ...
