![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
EXTJS4.0
fish_boneold
这个作者很懒,什么都没留下…
展开
-
ExtJs中ComboBox通过表单传值,后台要得到valueField的值---hiddenName
{name:"faId",xtype: "combo",fieldLabel: "父userId",width: 120,displayField:"userId",valueField:"uid",hiddenName:"faId",mode: 'remote',forceSelection:true,triggerAction: 'all',store:comboBoxStor原创 2011-07-12 16:04:53 · 459 阅读 · 0 评论 -
extjs4.0 自定义验证函数
//中文按2个字节 英文数字1个字节function countCharacters(str){ var totalCount = 0; for (var i=0; i<str.length; i++) { var c = str.charCodeAt(i); if ((c >= 0x0001 &...原创 2011-11-20 17:28:22 · 115 阅读 · 0 评论 -
浏览器窗口大小发生变化时,让弹出的窗体自动居中
//浏览器窗口大小发生变化时,让弹出的窗体自动居中Ext.EventManager.onWindowResize(function(){ if(addServerInfoWindow){ addServerInfoWindow.setHeight(document.body.clientHeight/1.5); addServerInfoWind...原创 2011-11-20 17:11:42 · 407 阅读 · 0 评论 -
让已存在的Tab更新加载的页面内容
目前我的布局是这样的,左边是一个tree,右边是tabpanel组成的显示区。当点击tree的其中一个节点的时候右边就动态的加载一个tabpanel。 我想达到的目的是当鼠标点击到已经生成的tabpanel的时候里面的内容让其再重新更新一次 var tab = mainPanel.getComponent(id); // 获取指定id的组件对象 if (tab...原创 2011-11-16 19:43:23 · 245 阅读 · 0 评论 -
EXTJS中用for in进行数组遍历陷阱(完全拷贝)
http://news.ctocio.com.cn/382/12146882.shtml原创 2011-11-10 14:57:24 · 366 阅读 · 0 评论 -
Ext中TreePanel控件和TabPanel控件搭配测试(完全拷贝)
在实际的项目中,左边树形菜单,提供各种功能点击,右边一个面板,随着左边节点的选择表现不同的功能内容,这是一个相当经典的布局,在Ext框架中,有两个控件TreePanel和TabPanel刚好完成这些功能,本文就这两个控件的搭配使用和点击左边树节点引起右边内容变化的方法作一个简单的介绍。首先看下面的具体的代码。 Js代码 <!DOCTYPE ...原创 2011-11-10 14:47:32 · 111 阅读 · 0 评论 -
往json数组里动态新增一个元素
原数组定义如下:var param = [{ "name": "calendarId", value: id },{ "name": "CalendarStartTime", value: dateFormat.call(start, i18n.xgcalendar.dateformat.fulldayvalue + " HH:mm") },{ "name": "原创 2011-11-10 14:40:59 · 1275 阅读 · 0 评论 -
net.sf.json.JSONException: There is a cycle in the hierarchy!
java程序返回json数据给extjs 前端时,可能会报net.sf.json.JSONException: There is a cycle in the hierarchy!,此时是因为设置了hibernate关联关系,<set name="areas" inverse="true"> <key>...原创 2011-11-10 14:32:46 · 59 阅读 · 0 评论 -
关于ext4.0的国际化
代码如下: <link rel="stylesheet" type="text/css" href="ext4/resources/css/ext-all.css"><script type="text/javascript" src="ext4/ext-all.js"></script&g原创 2011-12-28 14:24:32 · 85 阅读 · 0 评论 -
extjs4.x的desktop 分离classes.js的方法
uncaught exception:Ext.Loader is not enabled, so dependencies cannot be resolved dynamically,Missing required class:EXT.window.window 今天把extjs 4.0版本中examples中的desktop这个看了一下,老大要我改成符合我们需求的一个东西。 ...原创 2011-12-27 18:41:15 · 514 阅读 · 0 评论 -
ext的store.load的callback如何获得response的值?
后台返回的数据是json格式的如下:{success:true,version0:001,version1:001,version2:002,root[{name:aa,sex:1},{name:bb,sex:1},{name:cc,sex:0}]} 其中root是grid panel要显示的一条一条数据记录,而我前端用store请求的数据。那我如果得到 version0或者versi...原创 2011-12-14 15:14:47 · 560 阅读 · 0 评论 -
Ext.Ajax.request 与FormPanel.form.submit(copy)
http://yxgyh.iteye.com/blog/377009原创 2012-02-16 14:31:52 · 78 阅读 · 0 评论