
javascript
文章平均质量分 77
iteye_20790
这个作者很懒,什么都没留下…
展开
-
extjs 学习笔记
以前大搞过extjs,后来不用了,就忘了。。。最近又弄。。。哎,复习复习。。。搞extjs一定会遇到定制datagrid类型的view控件的东东,这种东东一般都是被Ext.data.Store驱动的,那么Store就值得好好研究下了。 扩展点:1.获取数据 - store.proxy or store.loadData()。store.loadData() 直接修改数据内容...2009-12-24 14:30:00 · 106 阅读 · 0 评论 -
extjs3.3 htmleditor各种修正和扩充
1.editor的iframe window的keydown事件绑定由于htmleditor本身提供的specialkey event不给力,所以自己手动在init时增加更加精确的keydown事件来弥补需要注意的是:chrome的事件必须绑定在body上,否则ENTER这种特殊的键无法触发 var win = Ext.isIE ? ed.getDoc() : ed.getWi...2011-11-15 19:02:00 · 226 阅读 · 0 评论 -
firefox的正则陷阱
\s 竟然包括中文全角空格,o(╯□╰)o2011-10-25 15:37:00 · 216 阅读 · 0 评论 -
flash和html跨域交互
当你在a域(a.com)下的html上引用b域(b.com)的flash/swf后需要通过externalinterface交互的话,需要在你的页面里加上allowScriptAccess="true"这个一般人都回家,还要记得再as里加上以下代码:import flash.system.Security;Security.allowDomain("*");奇怪的是好像flash不...2011-10-20 11:21:00 · 125 阅读 · 0 评论 -
根据浏览器(ie)不同版本执行引用js
<!--[if IE 6]> <script src="DD_belatedPNG.js"></script> <script> /* EXAMPLE */ DD_belatedPNG.fix('.png_bg'); /* string argument can b...2010-06-29 10:43:00 · 264 阅读 · 0 评论 -
解决extjs grid文字不能选中的问题
.x-selectable, .x-selectable * { -moz-user-select: text!important ; -khtml-user-select: text!important ; }// enable grid cell to be selected in chrome(x-selectable)/firefox(x-selectable)...2011-09-02 18:59:00 · 233 阅读 · 0 评论 -
Ext.ux.TabPanel 在IE7下的bug
Extjs2的一个扩展 地址:http://icyfire.javaeye.com/blog/412574 修正如下:adjustBodyWidth : function(w){ if (this.verticalTabs) { if (Ext.isIE6 || Ext.isIE7) { this.bwrap...2010-10-28 14:12:00 · 109 阅读 · 0 评论 -
html选中区域判断
getSelectionHTML : function() { var userSelection; if (window.getSelection) { // W3C Ranges userSelection = window.getSelection(); // Get the range: if (userSelection.getRangeAt)...2011-06-10 13:06:00 · 306 阅读 · 0 评论 -
extjs pitfalls
1. Ext.state.manager 开发的时候请慎用!这个陷阱是最严重的了,数次浪费了我数小时的时间,请大家一定要注意的 --注意是开发的时候,当你的布局随着代码不停的变更时,如果出现UI显示不出或者不正确的奇怪问题或者js报错,那么请先把你的cookie清楚下(当然了一般都是用CookieProvider)。2. FormLayout(FormPanel里的元素如果使用anchor...2010-08-17 11:14:00 · 81 阅读 · 0 评论 -
java删除(替换)不可见的unicode/utf-8字符(主要是html显示不了的字符)
今天遇到一个问题,由于编辑人员从excel等7788的地方copy内容过来,其中有不可见的字符,导致输出内容看上去是对的,其实是多了一个零长度的字符(比如:0000200B ZERO WIDTH SPACE),下面的代码基本解决了以上问题。 <html><head><meta http-equiv="Content-Type" content="...原创 2012-03-06 15:25:40 · 3745 阅读 · 0 评论