Perfect solution IE9 Browser appears object undefined problem _javascript tips

Source: Internet
Author: User

The current WINDOW7 machine, the use of IE9 browser many users, but IE9 in the compatibility of more stringent control, resulting in a number of programs on the CHROME,FIREFOX,IE6,IE7,IE8 can be normal operation, in the IE9 does appear a variety of problems, One of the problems here is that objects are defined, especially when multiple layers of iframe/frame are nested on a single page, and often appear:

Array object Not defined
$ object Not defined
jquery Object Not defined
JSON object Not defined
Undefined object Not defined

* Object Not defined ...

In this case, we started,

1, first of all, of course, check whether the JS file path reference is not correct, or the HTML file settings encoding incorrectly;

2, if these basic are normal no problem, we go to check, whether we write JS files in their own reference to the Third-party JS Plug-ins or frame behind, according to the DOM parsing, we'd better let their own JS file in the final resolution.

If the above two steps are guaranteed to be normal, and can operate normally on the CHROME,FIREFOX,IE6,IE7,IE8, then it is possible that we should emphasize the problem, IE9 strict problem, here we can handle on the page, add

<meta http-equiv= "x-ua-compatible" content= "Ie=emulateie8"/>

As a way to deal with IE9 compatibility, although Microsoft has moved IE to the standard, but in fact, each IE version still has a series of strange phenomenon of rendering, so for us, in this regard, Microsoft is very guilty, joking.

The above is small series for everyone to bring the perfect solution IE9 browser appears in the object does not define the full content of the problem, I hope to help you, a lot of support cloud Habitat Community ~

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.