Hello World Function
Warning. These examples work with the version 2.x of the Jaxon library.
These are the functions to be exported with Jaxon.
Each function creates and returns a Response
object.
function helloWorld($isCaps)
{
$response = new Response();
$text = ($isCaps) ? 'HELLO WORLD!' : 'Hello World!';
$response->assign('div1', 'innerHTML', $text);
return $response;
}
function setColor($sColor)
{
$response = new Response();
$response->assign('div1', 'style.color', $sColor);
return $response;
}