本文整理匯總了PHP中xajax::debugOff方法的典型用法代碼示例。如果您正苦於以下問題:PHP xajax::debugOff方法的具體用法?PHP xajax::debugOff怎麽用?PHP xajax::debugOff使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類xajax
的用法示例。
在下文中一共展示了xajax::debugOff方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: sessionExpired
$objResponse->addAssign('text_expand_' . $id, "style.display", 'inline');
$objResponse->addAssign('text_collapse_' . $id, "style.display", 'none');
$objResponse->addAssign('info_expand_' . $id, "style.display", 'inline');
$objResponse->addAssign('info_collapse_' . $id, "style.display", 'none');
return $objResponse;
}
function sessionExpired()
{
$objResponse = new xajaxResponse();
$objResponse->addAlert('Your session is expired, please reload the page and log in');
return $objResponse;
}
require_once MAX_PATH . '/lib/xajax/xajax.inc.php';
$xajax = new xajax();
//$xajax->debugOn(); // Uncomment this line to turn debugging on
$xajax->debugOff();
// Uncomment this line to turn debugging on
//$xajax->registerFunction("testAjax");
$xajax->registerFunction("expandOSURow");
$xajax->registerFunction("collapseOSURow");
$xajax->registerFunction("sessionExpired");
// Process any requests. Because our requestURI is the same as our html page,
// this must be called before any headers or HTML output have been sent
$xajax->processRequests();
$overwrite = true;
$jspath = MAX_PATH . '/var/templates_compiled/';
$jsfile = 'oxajax.js';
if (!file_exists($jspath . $jsfile) || $overwrite) {
ob_start();
$xajax->printJavascript($jspath, $jsfile);
// output the xajax javascript. This must be called between the head tags