- 浏览: 278438 次
- 性别:
- 来自: 北京
文章分类
最新评论
-
1042494076:
[list][*]引用引用[u] :P :roll: [/u ...
DIV增加滚动条不生效的问题 -
lvye351:
学习了,多谢
HashMap按照键值key排序 -
zxjlwt:
学习了。http://surenpi.com
ExtJS中动态设置TextField的readOnly属性 -
52p9_xu:
asasdasda
ExtJS中动态设置TextField的readOnly属性 -
52p9_xu:
[color=yellow][/color]
ExtJS中动态设置TextField的readOnly属性
最近使用了Ext.ux.UploadDialog,现在总结一下:
1、导入Ext.ux.UploadDialog包
注意包中没有包含zh_CN.utf-8.js,自己可以进行中文化的
2、产生上传文件的对话框代码
注意:提交时,默认提交的文件名是file 可以修改 post_var_name: 'fileName'修改
3、Ext.ux.UploadDialog中的其它事件函数[转载自http://wayfoon.iteye.com/blog/432541]
* filetest - fires before file is added into the queue, parameters:
dialog - reference to dialog
filename - file name
If handler returns false then file will not be queued.
* fileadd - fires when file is added into the queue, parameters:
dialog - reference to dialog
filename - file name
* fileremove - fires when file is removed from the queue, parameters:
dialog - reference to dialog
filename - file name
record - file record
* resetqueue - fires when upload queue is resetted, parameters:
dialog - reference to dialog
* beforefileuploadstart - fires when file as about to start uploading:
dialog - reference to dialog
filename - uploaded file name
record - file record
If handler returns false then file upload will be canceled.
* fileuploadstart - fires when file has started uploading:
dialog - reference to dialog
filename - uploaded file name
record - file record
* uploadsuccess - fires when file is successfuly uploaded, parameters:
dialog - reference to dialog
filename - uploaded file name
data - js-object builded from json-data returned from upload handler response.
record - file record
* uploaderror - fires when file upload error occured, parameters:
dialog - reference to dialog
filename - uploaded file name
data - js-object builded from json-data returned from upload handler response.
record - file record
* uploadfailed - fires when file upload failed, parameters:
dialog - reference to dialog
filename - failed file name
record - file record
* uploadcanceled - fires when file upload canceled, parameters:
dialog - reference to dialog
filename - failed file name
record - file record
* uploadstart - fires when upload process starts, parameters:
dialog - reference to dialog
* uploadstop - fires when upload process stops, parameters:
dialog - reference to dialog
* uploadcomplete - fires when upload process complete (no files to upload left), parameters:
dialog - reference to dialog
可能存在两种情况:
1)版本兼容
2)回调函数没有被注册
当时我使用的ExtJS的版本是2.0的,我手头没有代码,猜测应该是版本的问题,我记得UploadDialog这个widget要与ExtJS版本对应的
不客气,共同学习共同进步
最近比较忙,回复晚了。是否可以把你的代码贴上来,一起找问题阿?
1、导入Ext.ux.UploadDialog包
<link rel="stylesheet" type="text/css" href="<c:url value="/widgets/UploadDialog/css/Ext.ux.UploadDialog.css"/>"> <script type="text/javascript" src="<c:url value="/widgets/UploadDialog/Ext.ux.UploadDialog.js"/>"></script> <script type="text/javascript" src="<c:url value="/widgets/UploadDialog/Ext.ux.UploadDialog.packed.js"/>"></script> <script type="text/javascript" src="<c:url value="/widgets/UploadDialog/locale/zh_CN.utf-8.js"/>"></script>
注意包中没有包含zh_CN.utf-8.js,自己可以进行中文化的
2、产生上传文件的对话框代码
function uploadSw(){ var dialog = new Ext.ux.UploadDialog.Dialog({ url: 'swUpload.shtml?method=uploadFile', reset_on_hide: false, permitted_extensions:['gz'], allow_close_on_upload: true, upload_autostart: false, title:'软件入库' }); //dialog.show('show-button'); dialog.show(); dialog.on('uploadsuccess', onUploadSuccess); } function onUploadSuccess(dialog, filename, resp_data, record){ // 回调函数代码 }
注意:提交时,默认提交的文件名是file 可以修改 post_var_name: 'fileName'修改
3、Ext.ux.UploadDialog中的其它事件函数[转载自http://wayfoon.iteye.com/blog/432541]
* filetest - fires before file is added into the queue, parameters:
dialog - reference to dialog
filename - file name
If handler returns false then file will not be queued.
* fileadd - fires when file is added into the queue, parameters:
dialog - reference to dialog
filename - file name
* fileremove - fires when file is removed from the queue, parameters:
dialog - reference to dialog
filename - file name
record - file record
* resetqueue - fires when upload queue is resetted, parameters:
dialog - reference to dialog
* beforefileuploadstart - fires when file as about to start uploading:
dialog - reference to dialog
filename - uploaded file name
record - file record
If handler returns false then file upload will be canceled.
* fileuploadstart - fires when file has started uploading:
dialog - reference to dialog
filename - uploaded file name
record - file record
* uploadsuccess - fires when file is successfuly uploaded, parameters:
dialog - reference to dialog
filename - uploaded file name
data - js-object builded from json-data returned from upload handler response.
record - file record
* uploaderror - fires when file upload error occured, parameters:
dialog - reference to dialog
filename - uploaded file name
data - js-object builded from json-data returned from upload handler response.
record - file record
* uploadfailed - fires when file upload failed, parameters:
dialog - reference to dialog
filename - failed file name
record - file record
* uploadcanceled - fires when file upload canceled, parameters:
dialog - reference to dialog
filename - failed file name
record - file record
* uploadstart - fires when upload process starts, parameters:
dialog - reference to dialog
* uploadstop - fires when upload process stops, parameters:
dialog - reference to dialog
* uploadcomplete - fires when upload process complete (no files to upload left), parameters:
dialog - reference to dialog
评论
9 楼
zhanyuanwen1989
2015-04-02
能告诉我怎么添加关闭事件吗?
8 楼
qixiaopeng
2011-01-24
xiaoyuqi00 写道
请问楼主,
我这个怎么不调用回调函数啊?
还有,他怎么判断调用哪个回调函数?
我这个怎么不调用回调函数啊?
还有,他怎么判断调用哪个回调函数?
可能存在两种情况:
1)版本兼容
2)回调函数没有被注册
7 楼
xiaoyuqi00
2010-12-24
请问楼主,
我这个怎么不调用回调函数啊?
还有,他怎么判断调用哪个回调函数?
我这个怎么不调用回调函数啊?
还有,他怎么判断调用哪个回调函数?
6 楼
qixiaopeng
2010-07-14
zhangyongfeng 写道
为什么我会有这个错误?
‘x_buttons_upload.getEl()’is null or not an object
Ext.ux.UploadDialog.packed.js
谢谢 楼主 看看什么情况哈
‘x_buttons_upload.getEl()’is null or not an object
Ext.ux.UploadDialog.packed.js
谢谢 楼主 看看什么情况哈
当时我使用的ExtJS的版本是2.0的,我手头没有代码,猜测应该是版本的问题,我记得UploadDialog这个widget要与ExtJS版本对应的
5 楼
zhangyongfeng
2010-06-24
为什么我会有这个错误?
‘x_buttons_upload.getEl()’is null or not an object
Ext.ux.UploadDialog.packed.js
谢谢 楼主 看看什么情况哈
‘x_buttons_upload.getEl()’is null or not an object
Ext.ux.UploadDialog.packed.js
谢谢 楼主 看看什么情况哈
4 楼
qixiaopeng
2010-05-05
peteronline 写道
确实不错,学习啦,非常感谢!
不客气,共同学习共同进步
3 楼
qixiaopeng
2010-04-30
hui_windows 写道
我导入了Ext.ux.UploadDialog包中的相关js和css,运行了您的代码,但什么也没显示,请问为什么啊,请楼主帮忙,我想用ext.ux.uploaddialog做一个批量文件上传。
最近比较忙,回复晚了。是否可以把你的代码贴上来,一起找问题阿?
2 楼
hui_windows
2010-04-20
我导入了Ext.ux.UploadDialog包中的相关js和css,运行了您的代码,但什么也没显示,请问为什么啊,请楼主帮忙,我想用ext.ux.uploaddialog做一个批量文件上传。
1 楼
peteronline
2010-03-05
确实不错,学习啦,非常感谢!
发表评论
-
Ext.Window相关的两个类Ext.WindowMgr和Ext.WindowGroup
2010-01-07 17:27 3276工作中需要实现管理窗口,查了好长时间的API,终于找到了解决之 ... -
关于Extjs中Combo取值
2009-12-15 19:41 4359Ext.form.ComboBox 的editable设为tr ... -
使用ExtJS和Struts1.2上载文件成功,弹出下载框
2009-10-19 09:58 2660解决方法: 在向浏览器返回消息时,把response返回属性改 ... -
同时在ExtJS的GridPanel中监听contextmenu、rowcontextmenu
2009-09-23 10:17 2880listeners: { 'rowcontextme ... -
EXT JS 根据列表的行记录的某一单元格的值确定其他单元格的值
2009-08-14 15:26 1301…… {header:"设备ID", ... -
关于ExtJS combo远程数据加载+联动
2009-07-28 16:16 1671var ifIdstore = new Ext.data.Js ... -
加载表单后对下拉列表框中的加载数据的处理
2009-07-22 17:04 13411、填充表单数据的代码 function loadForm ... -
ExtJS combo
2009-07-22 16:58 1341store.on('load', function() ... -
关于Combo Box的分页(级联菜单)
2009-07-16 20:28 1265JS代码: var neNameStore = new E ... -
双击/单击Ext GridPanel的列表项
2009-07-02 18:49 5188进来项目中需要使用双击/单击行记录来获取数据,将实现的方式记录 ... -
Ext 右键菜单
2009-07-01 19:10 18511、JavaScript var acGrid = new ... -
关于ExtJS中的mask和unmask
2009-06-26 15:28 7277为了在发起某一事件后,阻止用户对界面的进行操作,可以使用Ext ... -
动态设置Store数据集中HTTP请求参数
2009-06-18 17:19 1538此处以JsonStore为例: var wifiPrefe ... -
EXTJS2.2.1中Grid表头的下拉菜单很难看
2009-06-15 16:30 1841浏览器:IE6.0 EXTJS版本:2.2.1 很早发现这个问 ... -
EXTJS中combobox的禁用和启用
2009-06-11 10:44 8012{ xtype:'combo', width : ... -
光标定位textfield,全部选中输入值
2009-05-15 16:58 2388Ext.onReady(function() { ... -
EXTJS中自定义表单验证
2009-05-15 15:34 3845Ext.apply(Ext.form. ... -
ExtJS中动态设置TextField的readOnly属性
2009-05-15 13:45 152391、假设 textField, 它的 id = 'textFi ... -
EXTJS 初始化Combobox的数据
2009-05-05 05:52 6400combobox获取数据有两种方式:即参数mode的取值,lo ...
相关推荐
ext.ux.uploadDialog实例
The class is ready for i18n, override the Ext.ux.UploadDialog.Dialog.prototype.i18n object with your language strings, or just pass i18n object in config. Server side handler. The files in the queue...
Ext.ux.UploadDialog批量上传文件应用,后台采用com.jspsmart.upload.SmartUpload。myeclipse工程,导入即可运行。
EXTjs的上传组件
在做文件上传的时候,发现了Ext.ux.UploadDialog这个强大的东西,实现了一下
NULL 博文链接:https://canfly2010.iteye.com/blog/545673
Ext.ux.UploadDialog下载,其中i18n的中文我写了一个js方便大家不想自己写的人调用,路径是:UploadDialog/locale/zh_CN.utf-8.js
Ext.ux.UploadDialog extjs上传文件的组件,免费下载
Ext 批量上传附件 组件 。可用 很好 很强大 我已在实际项目中使用过 没有问题。
struts+extjs实现UploadDialog struts+extjs实现UploadDialog
ext图片批量上传源码,使用Ext.ux.UploadDialog插件
使用Ext.ux.UploadDialog实现异步上传结合ftp上传。已经测试过了。 只要修改文件的ftp地址,就可以测试效果。 看了一些资料摸索出来的。
10.12 表格与树形的结合——Ext.ux.tree.ColumnTree 第11章 其他布局类简介 11.1 标准布局类 11.1.1 折叠布局——AccordionLayout 11.1.2 边框布局——BorderLayout 11.1.3 卡片式布局——CardLayout 11.1.4 ...
10.12 表格与树形的结合——Ext.ux.tree.ColumnTree 第11章 其他布局类简介 11.1 标准布局类 11.1.1 折叠布局——AccordionLayout 11.1.2 边框布局——BorderLayout 11.1.3 卡片式布局——CardLayout 11.1.4 ...
ext3 上的文件上传插件,对ext2的上传功能做了修正,调用方式和ext2的方式相同