现在的位置: 首页 > 综合 > 正文

js4

2012年12月31日 ⁄ 综合 ⁄ 共 743字 ⁄ 字号 评论关闭

var onece=false;
//提交表单
function submitForm(formid,items,url){
onece=true;
var zd=(nowDIV==threadDIV);
$(formid).skygqCheckAjaxForm({
items: items,
url : url,
isAjaxSubmit : true,
success : showResponse,
type : 'post',
ajaxImage :'${ctxPath}webapps/images/loading.gif',
dataType :'html',
zhedang : zd
});
$(formid).submit();
}
//回调函数
function showResponse(responseText, statusText, xhr, $form)  { 
if(onece){
if(z>i){

nextDIV();
}else if(z==i){

}else {
preaDIV();
}
nowDIV.html(responseText);
i=z;
}
onece=false;
}
//删除一行
function removeRow(trId){

jConfirm('您确定这么做吗?', '确定对话框', function(r) {
if(r==true){
var x = document.getElementById(trId);  
x.parentNode.removeChild(x);  
}
});
}
function send(sendUrl,show){
$.ajax({
type: "POST",
url: sendUrl,
dataType:"html",
success: function(result){
if(show){
jAlert(result);
}
}
});
}

抱歉!评论已关闭.