include_once("./xajax.inc.php");
function helloWorld($isCaps) {
if ($isCaps) {
$text = "HELLO WORLD";
} else {
$text = "hello world";
}
$objResponse = new xajaxResponse();
$objResponse->addAssign("div1", "innerHTML", $text);
return $objResponse;
}
$xajax = new xajax();
$xajax->registerFunction("helloWorld");
$xajax->processRequests();
echo "
An example of xajax".$xajax->printJavascript('./')."";
echo "
大小写转换
";
echo "
";
echo "
";
echo "
";
?>
阅读(1090) | 评论(0) | 转发(0) |