When JSP uses the base tag and time control, the site cannot be opened under IE6, and the operation has been terminated to solve the problem.

Source: Internet
Author: User
When JSP uses the base tag, the site cannot be opened under IE6 and the operation has been terminated to solve the problem.

Article category: Web Front-end

Today, when you are working on a project, there is a response from the project members. A time control must be referenced in the project. However, when you open the project under IE6, a dialog box indicating that the site cannot be opened and the operation has been terminated is displayed, this makes the time control unusable. However, it is strange that another member of the project team can call the code exactly the same.

After careful comparison, we finally found that one row was missing from the previously usable page and the base tag was not used: <base href = "<% = basepath %>">

After you remove this tag from an unusable page, everything is normal.

 

However, this is not the final solution, because sometimes the base tag must be used for page Jump and other considerations. After querying relevant information on the Internet, find a better solution that can make the two compatible,

 

You just need to put the base tag under the JS introduce code, that is, first introduce the JS Code of the time control, and then write the base tag.

 

Now, the problem is solved.

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.