API DOCS

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

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:

printJavascript

Examples


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>
...
 

 



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