标签:
但是可以进入添加页面,填完信息后,submit后跳转至 错误页面,(Unknown system error)
参考解决方案:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError
最终是因为:替换之后name要换成id.
1 <%--var hidden = document.createElement("<input type=‘hidden‘ name=‘<%=myid>‘>");--%> 2 var hidden=document.createElement("input"); 3 hidden.setAttribute("type","hidden"); 4 hidden.setAttribute("id","myid"); 5 obj.appendChild(hidden);
Unable to get property ‘substring‘ of undefined or null reference
解决: document.getElementsByName("startDate").value != ‘‘ && document.getElementsByName("endDate").value != ‘‘;
后面要加下标,如getElementsByName("")[0].value;
Unable to get property ‘style‘ of undefined or null reference
解决:document.getElementById.iframe1.style.display=‘none‘;
解决:document.form1.birthDayStr.disabled= true;
PS. <form name="form1"
1 IF : 2 form1.actionType.value = "searchResult"; 3 THEN: 4 var form1 = document.getElementsByName("form1")[0]; 5 Other points Similar
1 function _submitQuery(){ 2 if(!_checkQuery()){ 3 alert("-----"); 4 } 5 return 6 }
原因:_checkQuery()内的一个getElementsByName的一个下标为[],未加0;
原因:IE11不支持【document.frames("pendingActivities")】用法。
function doRediary(){ var radios=doucment.frames("pendingActivities").document.getElemntsByName("selectedActivities"); }
替换为:
function doRediary(){ var radios=doucment.frames["pendingActivities"].document.getElemntsByName("selectedActivities"); }
技术来源:blog.sina.com.cn/s/blog_74924f2401017t0a.html
持续更新;
标签:
原文地址:http://www.cnblogs.com/yaoxing365/p/4788313.html