1
我知道PHP代码应该是财产以后这样的:如何知道Colorbox打开的PHP页面?
if(!empty($_GET['isajax']) || !empty($_POST['isajax'])) $isajax=TRUE; else $isajax=FALSE;
if(!$isajax){
//load header
}
我需要知道我可以编辑彩盒脚本来自动发送“isajax”每个AJAX请求。
我已经加入
$.extend(settings.data, {isajax:'yes'});
之前
$loadingBay.load(href, settings.data, function (data, status, xhr) {
prep(status === 'error' ? $tag(div, 'Error').text('Request unsuccessful: ' + xhr.statusText) : $(this).contents());
});
但不起作用。