当前位置: 代码迷 >> Java Web开发 >> 在jsp中怎的调asp页面
  详细解决方案

在jsp中怎的调asp页面

热度:105   发布时间:2016-04-17 14:28:39.0
在jsp中怎样调asp页面?
在text中调用onblur事件,onblur事件调jsp函数,下面的不对地方???


function   go(){
    var   ddbh=theForm.ddbh.value;

    if   (jtrim(ddbh)== " ")
    {alert( "定单编号不能为空! ");
    theForm.ddbh.focus();
    return   false;
  theForm.action= "a.asp "

}
}

<input   name= 'ddbh '   class=input   id= '1 '   size= '20 '   tabindex= '1 '   onblur= 'go() '     >




------解决方案--------------------
没做过这样的
个人觉得这样提交应该是不行的!
如果没有传值,单纯跳转应该可以!
不过,首先你要确定你的服务器要同时支持jsp,asp
------解决方案--------------------
function go(){
var ddbh=theForm.ddbh.value;

if (jtrim(ddbh)== " ")
{alert( "定单编号不能为空! ");
theForm.ddbh.focus();
return false;
}
theForm.action= "a.asp ";
theForm.submit();
}
  相关解决方案