- 浏览: 56197 次
- 性别:
- 来自: 成都
最新评论
-
yanqiuxiang:
我想请问一下在哪里配置上传附件的格式
FCKEditor 2.6.5 增加附件、文件&文件夹删除、按用户分上传文件夹功能 -
SonofGod:
支持楼主!
关于如何编写优美的JavaScript代码之我见 -
pandong8183:
wendy~QQ 写道楼主,为什么我放在ext3.2的就不显示 ...
在Ext中集成KindEditor4.0正式版 -
wendy~QQ:
楼主,为什么我放在ext3.2的就不显示了,2.2就可以?
在Ext中集成KindEditor4.0正式版 -
pandong8183:
这个我倒没有注意,谢谢提醒,我看看,有结果了再和你研究
不过对 ...
在Ext中集成KindEditor4.0正式版
文章列表
CSS设置图像的最大宽度
- 博客分类:
- JS&CSS
.content img{
width:expression(this.width >730 ? 730 : true);
}
Ext手动对表单进行提交
- 博客分类:
- ExtJs
typeInfoForm.getForm().submit({
url : '/manage/TypeInfoManageAction.do',
method : 'post',
params:{
flag:'save',
parentId:typeInfo.parentId
},
waitMsg : '正在发送数据,请稍后...',
success : function(form, action) {
store.load({params : {start : 0,limit : 10}});
win.close();
},
failure ...
Ext实现动画弹出的window
- 博客分类:
- ExtJs
var win = new Ext.Window();
win.setAnimateTarget(target);//动画效果
win.show();
target为从哪里弹出的对象ID
Ext两层以上的tbar
- 博客分类:
- ExtJs
首先你的grid已经设置了一个tbar,然后可以在初始化完毕的时候再添加一个tbar
listeners : {
render : function(trid, rowIndex,e) {
var tbar = new Ext.Toolbar({
items : [{text : 'bbar Left'}, '-', {text : 'bbar Right'}]
});
tbar.render(grid.tbar);
}
}
Ext对下拉列表value值的读取
- 博客分类:
- ExtJs
var combox = new Ext.form.ComboBox({
id:'likeName',
store: comboxStore,
displayField:'likeName', //显示的值
valueField:'likeType', //提交的值
hiddenName:'likeType', //提交的值
typeAhead: true,
width:120,
mode: 'local', //本地信息
forceSelection: true,
trig ...
Ext对表单元素使用正则表达式
- 博客分类:
- ExtJs
{
fieldLabel: '品牌网址',
xtype:'textfield',
name: 'brand.brandHttp',
width:'300px',
invalidText:'品牌网址不正确,必须以http://开头!',
validator:function(){
var brandHttp = this.getValue();
...
Ext对combox初始化对应的值
- 博客分类:
- ExtJs
var TypeInfoForm = Ext.getCmp("TypeInfoForm");
TypeInfoForm.getForm().load({
url:"/manage/TypeInfoManageServlet?flag=getById&typeId="+typeId,
waitMsg:'正在读取数据...',
success:function(){
//正确读取完数据后,再初始化对应下拉列表
var count = typeInfoListStore.getCount();
var ...
Ext中数据集的循环操作
- 博客分类:
- ExtJs
假设typeInfoListStore是一个store对象,该代码段可用于下拉列表的初始化值
var count = typeInfoListStore.getCount();//读取数据集数量
var parentId = Ext.getCmp("parentIdHidden").getValue();//读取parentIdHidden对象的值
for(var i = 0 ; i < count ; i++){
var typeInfo = typeInfoListStore.getAt(i).data;//根据下标读取数据集中的j ...
Ext的MessageBox实现动画弹出
- 博客分类:
- ExtJs
Ext.MessageBox.show({
width:300,
title : '提示',
msg : '没有选择任何数据,不能删除!',
buttons : Ext.MessageBox.OK,
animEl : 'btn_file_delete',//该对话框从id为btn_file_delete的对象上弹出
icon : Ext.MessageBox.WARNING
});
animEl : 'btn_file_delete' 此句是弹出动画的关键