TreePanel not functioning - Ext JS

作者昨天在清理过程中不小心破坏了TreePanel,现已上传热修复补丁。用户反馈修复后关闭分支的问题得到解决,但出现树状图示例中图片无法显示的问题。讨论涉及图片路径配置错误及解决方案。
The TreePanel was broken by me yesterday doing clean up. I have uploaded a new zip (same location) with a hot fix.

Sorry for any inconvenience.
Reply With Quote
  #2  
Old 02-19-2007, 12:10 PM
Default

Thanks a lot, that fixed the problem I had with closing branches 8)
Reply With Quote
  #3  
Old 02-19-2007, 01:05 PM
Default

i have the examples local running, the tree expamples dont show me the tree-pics (s.gif).
Under the pic property in firefox the pic url ist yui-ext.com/s.gif.
Anyone with the same problem?
Reply With Quote
  #4  
Old 02-19-2007, 01:09 PM
Default

That's only an empty placeholder gif. Most likely the css link is wrong (yui-ext.css instead of ext-all.css).
Reply With Quote
  #5  
Old 02-19-2007, 01:14 PM
Default

Take a look at the docs under Ext.BLANK_IMAGE_URL. It the url of a blank image file Ext can use to create inline image with css background images.
Reply With Quote
  #6  
Old 02-19-2007, 01:21 PM
Default

i think it have something to do with core/ext.js BLANK_IMAGE_URL: "http://www.yui-ext.com/s.gif".
the css urls (../images/default/s.gif) are all ok.

ah, got it : http://www.yui-ext.com/forum/viewtopic.php?t=2829
Reply With Quote
  #7  
Old 02-19-2007, 01:27 PM
Default

The reason it isn't specified as a standard css path is because the correct path depends on what page it is running in. Ideally, it should be set to an absolute path.
Reply With Quote
  #8  
Old 02-19-2007, 01:54 PM
Default

Quote:
Originally Posted by jacksloc
The reason it isn't specified as a standard css path is because the correct path depends on what page it is running in. Ideally, it should be set to an absolute path.
By "absolute" you mean root relative, right?

Root relative:
/images/s.gif
instead of absolute:
http://mydomain.com/images/s.gif
Reply With Quote
  #9  
Old 02-19-2007, 01:59 PM
Default

Yes, that would work too.
Reply With Quote
  #10  
Old 02-19-2007, 02:06 PM
Default

The only reason I mention is that the absolute path will cause issues for users who have apps that switch in and out of SSL mode.
Reply With Quote
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值