"Internet Explorer cannot open site, operation terminated" SOLUTION

Source: Internet
Author: User

"Internet Explorer cannot open the site. The operation has been terminated.Solved

Everything will happen during development, but you need to learn how to solve the problem, that is, the idea of working with others to solve the problem.

Jquery is used to encapsulate a control class.

Unexpectedly. Net.

Later, I checked

Problem:Internet Explorer cannot open the site. The operation has been terminated.

Cause: the encapsulated JS file has not been completely downloaded to the local device.

Solution: Add judgment in the place where JS is called: If (document. readystate = "complete"). If yes, setTimeout will be performed several seconds later. However, this attribute is only valid for IE and opeara. The document of FF does not have the readystate attribute and is always undefined. However, the current customers cannot only meet the requirements of IE, and the solution is not feasible.

Try the second solution: Use the defer attribute in the script. It is intended to execute the script after the page is loaded, so that the object cannot be found. Defer does not consider whether all external files have been downloaded, but determines whether the current page has been fully loaded. Only, with the defer labelCodeThe document. Write method cannot be written in the block.

 

 

Related Article

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.