2008年7月10日 星期四

xajax 0.5 常用函數

幾個常用的函數
$objResponse = new xajaxResponse();

$objResponse->assign("myInput1","value",$DataFromDatabase);

$objResponse->assign("myInput1","style.color","red");

$objResponse->append("myDiv1","innerHTML",$DataFromDatabase2);

$objResponse->prepend("myDiv2","innerHTML",$DataFromDatabase3);

$objResponse->replace("myDiv3","innerHTML","xajax","xajax");

$objResponse->script("var x = prompt(\"Enter Your Name\");");

return $objResponse

沒有留言: