注册 登录
编程论坛 jQuery论坛

ajax提交fuccess方法没有执行成功

fjhtf 发布于 2012-06-01 16:11, 4405 次点击
<img src="yellowimages/tjdd.jpg" style="cursor:hand;" onClick="openDiv('dantijiao.asp','<%=zctime%>','<%=GPSERT%>','<%=id%>','<%=zzj%>','<%=zjbx%>','<%=zzzfw%>','<%=SXF%>','<%=ddze%>','<%=isfp%>','<%=fpname%>','<%=fpaddress%>','<%=fppost%>')" />

提交不能执行请问是哪里出了问题。


<script>
function openDiv(jsweb,zuqi,gpsert,id,zjze,bxf,otherfy,sxf,ddze,isfp,fpname,fpaddress,fppost)
{
    document.getElementById('dingdantijiao').style.display='block';
    document.getElementById('bg').style.display='block';
    /*var abc=jsweb+"?rm="+new Date().toString()+"&zuqi="+zuqi+"&gpsert="+gpsert+"&id="+id+"&zjze="+zjze+"&bxf="+bxf+"&otherfy="+otherfy+"&sxf="+sxf+"&ddze="+ddze+"&isfp="+isfp+"&fpname="+fpname+"&fpaddress="+fpaddress+"&fppost="+fppost;
    document.write(abc);*/
    $.ajax({
        url:jsweb+"?rm="+new Date().toString()+"&zuqi="+zuqi+"&gpsert="+gpsert+"&id="+id+"&zjze="+zjze+"&bxf="+bxf+"&otherfy="+otherfy+"&sxf="+sxf+"&ddze="+ddze+"&isfp="+isfp+"&fpname="+fpname+"&fpaddress="+fpaddress+"&fppost="+fppost,
        type:'GET',
        success:function(){
            if(arguments[0].search("订单提交成功!")>0){
                window.location.href='dingdanwancheng.asp';
            }else{
            $('#dingdantijiao').html(arguments[0]);
            }
        }
    });
}

</script>
0 回复
1