Error-NotSupportedError: DOM Exception 9 occurs when jquery plug-in-zTree is used.

Source: Internet
Author: User


NotSupportedError: DOM Exception 9

Uncaught TypeError: Object function (j, s) {return new B. fn. init (j, s)} has no method 'isxmldoc'

 


Today, I helped my friend locate a problem. I used zTree to display Tree data and used jquery1.4.4 + zTree. However, this project is mixed with some Extjs3.1 code, you can use the chrome Sniffer plug-in tool to view the JS conflict errors during use.

NotSupportedError: DOM Exception 9.

 

 

1. There are two reasons for the problem. A friend wrote the code loaded by JS together with the JS Code. We recommend that you use a separate external link for js introduced externally.

<script type="text/javascript">     $import('<c:out value='${pageContext.request.contextPath}'/>/style/demo.css',             '<c:out value='${pageContext.request.contextPath}'/>/style/zTreeStyle/zTreeStyle.css',             '<c:out value='${pageContext.request.contextPath}'/>/script/jquery-1.4.4.min.js',             '<c:out value='${pageContext.request.contextPath}'/>/script/jquery.ztree.core-3.5.min.js'); </script>     <script type="text/javascript">        $import('<c:out value='${pageContext.request.contextPath}'/>/style/demo.css',                '<c:out value='${pageContext.request.contextPath}'/>/style/zTreeStyle/zTreeStyle.css',                '<c:out value='${pageContext.request.contextPath}'/>/script/jquery-1.4.4.min.js',                '<c:out value='${pageContext.request.contextPath}'/>/script/jquery.ztree.core-3.5.min.js');    </script>

2. If you upgrade jquery to version 1.6 or later (no tests are available), you can solve this problem. In addition, Extjs can be eliminated. Of course, this is not realistic.

Over 1.6 solved the problem of mixed use of jquery and Extjs

 


 

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.