The image is not displayed when extjs generates a tree.

Source: Internet
Author: User

 

Method 1:

This problem is exposed without the Internet connection of the system.

Because extjs always accesses the s.gif image file http://extjs.com/s.gif by default when generating a tree. The navigation image of the Tree node cannot be displayed without network connection. The right-click attribute shows that it is http://extjs.com/s.gif. After searching, we can find that the s.gif is defined in the ext-base.js file: Blank_image_url: "http:/" + "/extjs.com/s.gif" And extjs examplesProgramIs with this s.gif image file. Modify the ext-base.js: Blank_image_url: "../images/default/s.gif" // find the image path based on the directory structure 2nd methods: In the project to create a general JS file JS write Ext. blank_image_url = "../ext-3.0.0/resources/images/default/s.gif "; It will be OK in reference. From: http://83026191.iteye.com/blog/461845

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.