Topic: Need that $xajax->printJavascript() function is returned JS code

Description of problem:
Now result of function printJavascript() makes by echo method, but it is not right and not conveniently.
More conveniently, when function is out result by return method.

For example how as i offer:
$jscode=$xajax->printJavascript();
or on page
<? echo $xajax->printJavascript(); ?>

Thank you.

Re: Need that $xajax->printJavascript() function is returned JS code

take a look in the api-doc:

http://api.xajaxproject.org/files/xajax … Javascript

Re: Need that $xajax->printJavascript() function is returned JS code

Oh, thank you..  smile