一共有三个jsp文件出错
出错jsp部分代码如下:
checkform.jsp
第36行:with(obj.elements[i]){
var _dataType = getAttribute("dataType");
if(typeof(_dataType) == "object" || typeof(this[_dataType]) == "undefined") continue;
this.ClearState(obj.elements[i]);
if(getAttribute("require") == "false" && value == "") continue;
switch(_dataType){
case "Date" :
case "Repeat" :
case "Range" :
case "Compare" :
case "Custom" :
case "Group" :
case "Limit" :
case "LimitB" :
case "SafeString" :
if(!eval(this[_dataType])) {
this.AddError(i, getAttribute("msg"));
}
break;
default :
if(!this[_dataType].test(value)){
this.AddError(i, getAttribute("msg"));
}
break;
}
第104行:with(elem){
if(style.color == "red")
style.color = "";
var lastNode = parentNode.childNodes[parentNode.childNodes.length-1];
if(lastNode.id == "__ErrorMessagePanel")
parentNode.removeChild(lastNode);
}
------------------------------------分界线--------------------------------------
jsonrpc.js
if(JSONRpcClient.http_spare.length >= JSONRpcClient.http_max_spare)
出错->delete http;
else
JSONRpcClient.http_spare.push(http);
---------------------------分界线--------------------------------------------
cart.jsp:
第166行:document.all.totalMoney.innerText = Math.round(newTotal*100)/100;
alert("<bean:message key="cart.modi.suc"/>");
}else{
alert("<bean:message key="cart.modi.fail"/>");