E3 Tree 1.6 The Fix method of displaying the problem under Firefox _javascript tips

Source: Internet
Author: User
Tree in Firefox only show a word:

Viewing page elements with Firebug observations found


Two script imports are separated by a <script>, which is obviously a document.write problem. Because the Firefox to the JS specification check more stringent, certain characters are not the output of the escape.
View source code for E3 tree:
/e3tree/src/net/jcreate/e3/tree/ext/exttreebuilder.java
/e3tree/src/net/jcreate/e3/tree/ext/outlookexttreebuilder.java
find the relevant code:
Copy Code code as follows:

Resouces.append ("<script><!--"). Append (ENTER);
Resouces.append ("If" (typeof (Ext) = "undefined" "| | typeof (Ext.domhelper) = = "" Undefined "") {). append (ENTER);
Resouces.append ("document.write" ("<script src=" "${resoucehome}/adapter/ext/ext-base.js" "></script>") ;"). Append (ENTER);
Resouces.append ("document.write" ("<script src=" "${resoucehome}/ext-all.js" "></script>"). Append (ENTER);
Resouces.append ("}"). Append (ENTER);
Resouces.append ("--></script>"). Append (ENTER);
These two classes have import code that is modified to:
Resouces.append ("If" (typeof (Ext) = "undefined" "| | typeof (Ext.domhelper) = = "" Undefined "") {). append (ENTER);
Resouces.append ("document.write" "<script src=" "${resoucehome}/adapter/ext/ext-base.js" "" ">" "</script ">"). Append (ENTER);
Resouces.append ("document.write" "<script src=" "${resoucehome}/ext-all.js" "" ">" "</script" ">"). Append (ENTER);
Resouces.append ("}"). Append (ENTER);

As long as the < and > before the Escape "" on the line.
The compiled class is then imported into the E3.jar. The tree appears normal after redeployment.
E3 fix 2 Bugs download E3

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.