IE upgrade code when the message content

Source: Internet
Author: User

    • Typeerrorunable to set property ' value ' of undefined or null reference.

However, you can go to add page, fill out the information, submit to the error page, (Unknown system error)

Reference Solutions:

Http://stackoverflow.com/questions/21775185/error-unable-to-set-property-value-of-undefined-or-null-reference

Https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypeError

The end result is that the name is replaced with an 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

      Resolution: Document.getelementsbyname ("StartDate"). Value! = ' && document.getelementsbyname ("EndDate"). Value! = ';

The following should be added subscript, such as Getelementsbyname ("") [0].value;

    • Unable to get property ' style ' of undefined or null reference

Solution: document.getelementbyid.iframe1.style.display= ' none ';

    • Unable to set property ' disabled ' of undefined or null reference

Resolution: Document.form1.birthdaystr.disabled= true;

PS. <form name= "Form1"

    • document.getElementById () that existed before the upgrade in the system, some of which are not supported in IE11
1 IF:          2      Form1.actionType.value = "SearchResult"; 3 Then : 4      var Form1 = Document.getelementsbyname ("form1") [0]; 5  Other points Similar  
    • The function in the onclick () is reported _submitquery is undefined
1 function _submitquery () {2  if (! _checkquery ()) {3  alert ("-----");    4 }       5     return6 }

Cause: One of the getelementsbyname in _checkquery () is labeled [], without adding 0;

    • Report function expected

Cause: IE11 does not support the "Document.frames (" pendingactivities ") usage.

function Dorediary () {var radios=doucment.frames ("Pendingactivities"). Document.getelemntsbyname (" Selectedactivities ");}

To be replaced by:

function Dorediary () {var radios=doucment.frames["pendingactivities"].document.getelemntsbyname (" Selectedactivities ");}

Technical Source: blog.sina.com.cn/s/blog_74924f2401017t0a.html

    • No

continuous updating;

IE upgrade code when the message content

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.