下载此文档

[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入....doc


文档分类:IT计算机 | 页数:约21页 举报非法文档有奖
1/21
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/21 下载此文档
文档列表 文档介绍
[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入...
,使用方法,直接复制,();
},
failure : function(form, action) {
();
if ( == )
('警告',
'上传失败,仅支持jpg、bmp、gif、png格式的图片');

}

});
}
}, {
text : '关闭',
type : 'submit',
handler : function() {
(this);
}
}]
})
var win = new ({
title : "上传图片",
id : 'picwin',
width : 400,
height : 120,
modal : true,
border : false,
iconCls:'icon-uploadpic',
layout : "fit",
items : imgform
});
();

},//上传图片的扩展
addFile : function() {
var editor = this;
var fileform = new ({
region : 'center',
labelWidth : 55,
frame : true,
bodyStyle : 'padding:5px 5px 0',
autoScroll : true,
border : false,
fileUpload : true,
items : [{
xtype : 'textfield',
fieldLabel : '选择文件',
name : 'userfile_F',
id : 'userfile_F',
inputType : 'file',
allowBlank : false,
blankText : '文件不能为空',
height : 25,
anchor : '98%'
}],
buttons : [{
text : '上传',
type : 'submit',
handler : function() {
var furl="";//文件物理地址
var fname="";//文件名称
furl=('userfile_F').getValue();
var type=(-3).toLowerCase();
if (furl==""||furl==null) {return;}
if(type!='doc'&&type!='xls'){
alert('仅支持上传doc、xls格式的文件!');
return;
}
fname=(("\\")+1);
({
url : '/',
waitMsg : '正在上传......',
waitTitle : '请等待',
method : 'POST',
success : function

[转]Extjs 扩展Htmleditor,支持 图片上传 文件上传 插入flash 插入... 来自淘豆网www.taodocs.com转载请标明出处.

相关文档 更多>>
非法内容举报中心
文档信息
  • 页数21
  • 收藏数0 收藏
  • 顶次数0
  • 上传人黛玉文档
  • 文件大小15 KB
  • 时间2022-01-20