When using the wdatepicker date Selection control, Internet Explorer cannot open the site and has terminated the operation.

Source: Internet
Author: User

I encountered such a strange problem recently when I was writing a program. I reported "... Unable to open site ......,...... An error such as "terminated operation". I checked it online and found a solution.

I used the second solution.
(1) Determine document. readystate = "complete" in the appendchild or innerhtml operation. If it is not, setTimeout several seconds and then perform this operation again. However, this attribute is only valid for IE and opeara. The document of FF does not have the readystate attribute and is always undefined.

(2) 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. In addition, the document. Write method cannot be written in a code block with a defer label.
For example, <script language = "JavaScript" type = "text/JavaScript" Defer = "Defer" src = "<% = basepath %> JS/datepicker/wdatepicker. JS "> </SCRIPT>

(3) Whether the tag is not closed

 

In the past, I used IE8 as my browser and may have handled this error. Therefore, it was normal before defer was added, and I used IE6, which was an evil one.

In addition, if there is still an error similar to the second method, please remember to add <% = basepath %> When referencing !!

I encountered such a strange problem recently when I was writing a program. I reported "... Unable to open site ......,...... An error such as "terminated operation". I checked it online and found a solution.

I used the second solution.
(1) Determine document. readystate = "complete" in the appendchild or innerhtml operation. If it is not, setTimeout several seconds and then perform this operation again. However, this attribute is only valid for IE and opeara. The document of FF does not have the readystate attribute and is always undefined.

(2) 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. In addition, the document. Write method cannot be written in a code block with a defer label.
For example, <script language = "JavaScript" type = "text/JavaScript" Defer = "Defer" src = "<% = basepath %> JS/datepicker/wdatepicker. JS "> </SCRIPT>

(3) Whether the tag is not closed

 

In the past, I used IE8 as my browser and may have handled this error. Therefore, it was normal before defer was added, and I used IE6, which was an evil one.

In addition, if there is still an error similar to the second method, please remember to add <% = basepath %> When referencing !!

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.