本文整理匯總了PHP中xajaxResponse::clear方法的典型用法代碼示例。如果您正苦於以下問題:PHP xajaxResponse::clear方法的具體用法?PHP xajaxResponse::clear怎麽用?PHP xajaxResponse::clear使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xajaxResponse
的用法示例。
在下文中一共展示了xajaxResponse::clear方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: content_list_ajax
function content_list_ajax()
{
$objResponse = new xajaxResponse();
$objResponse->clear("contentlist", "innerHTML");
$objResponse->assign("contentlist", "innerHTML", display_content_list());
return $objResponse;
}
示例2: ajax_refreshCart
public function ajax_refreshCart()
{
$objResponse = new xajaxResponse();
$objResponse->clear("cart-contents", "innerHTML");
$objResponse->append("cart-contents", "innerHTML", $this->getCartTemplate());
return $objResponse;
}
示例3: scribble
function scribble($aFormValues)
{
$sHandle = $aFormValues['handle'];
$sWords = $aFormValues['words'];
$objResponse = new xajaxResponse();
$objGraffiti = new graffiti($sHandle, $sWords);
$sErrMsg = $objGraffiti->save();
if (!$sErrMsg) {
$objResponse->script("xajax_updateWall();");
$objResponse->clear("words", "value");
} else {
$objResponse->alert($sErrMsg);
}
return $objResponse;
}
示例4: content_delete
function content_delete($contentid)
{
$objResponse = new xajaxResponse();
deletecontent($contentid);
$objResponse->script("\$('#tr_{$contentid}').effect('fade', [], 3000);");
$objResponse->clear("contentlist", "innerHTML");
$objResponse->assign("contentlist", "innerHTML", display_content_list());
return $objResponse;
}