How to fix the problem displayed on E3 tree 1.6 in Firefox

Source: Internet
Author: User

Tree Only displays one sentence in Firefox:

UseFirebugView page elements


The two scripts are separated by one <script>, which is obviously a document. write issue. Because Firefox strictly checks js specifications, it is certain that some characters are not escaped when being output.
View the source code of the e3 tree:
/E3Tree/src/net/jcreate/e3/tree/ext/ExtTreeBuilder. java
/E3Tree/src/net/jcreate/e3/tree/ext/OutlookExtTreeBuilder. java
Find related Code:
Copy codeThe Code is 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 );
Both classes have the import code and modify it:
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 );

Just add the escape "" Before <and>.
Import the compiled class to e3.jar again. The tree is 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.