API DOCS

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

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:

getJavascript

Examples

Code: php

 
<?php
$xajax = new xajax();
$xajax->configure( 'javascript URI','/libs/xajax/' );
 
//...
 
$xajax->processRequest();
?>
<html>
<head> 
  <?php $xajax->printJavaScript(); ?>
</head>
<body>
...
 

 



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