本文整理汇总了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