ExtJS Flash 上传组件

Ext.ns('CMONO');
Application = function(config){
    Ext.apply(config);
};
    CMONO.UploadWindow = Ext.extend(Ext.Window, {
        title:'单图片预览和上传',
        height:300,
        width:330,
        resizable:false,
        constructor:function(){
            CMONO.UploadWindow.superclass.constructor.apply(this, arguments);
                       
        },
        initComponent:function(ct){
                       
            this.title = '修改';
            this.items = [{
                xtype:'panel',
                id:'qq',
                html:'qq'
            }];
                       
            CMONO.UploadWindow.superclass.initComponent.apply(this, arguments);
        },
        onShow:function(ct, pos){
                   
            new swfobject.embedSWF('UPLoad.swf', 'qq', 320, 270, '10.0.0', '', {
                uploadButtonText: this.uploadButtonText,
                selectButtonText: this.selectButtonText,
                url: this.url,
                allowKey: this.allowKey
            });
                       
            CMONO.UploadWindow.superclass.onShow.call(this, ct, pos);
                       
        }
    });
               
    Ext.reg('upwindow',CMONO.UploadWindow);

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>ExtJS Flash 上传组件</title>
<link rel="stylesheet" type="text/css" href="ext/resources/css/ext-all.css" />
<script type="text/javascript" src="ext/adapter/ext/ext-base.js"></script>
<script type="text/javascript" src="ext/ext-all-debug.js"></script>
<script type="text/javascript" src="ext/src/locale/ext-lang-zh_CN.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="UploadWindow.js"></script>
<!--<script type="text/javascript" src="CategoryGrid.js"></script>-->
</head>
<body>
</body>
<script type="text/javascript">
    Ext.QuickTips.init();//添加错误提示
    Ext.form.Field.prototype.msgTarget = "side";//输入框后面加上感叹号
    Ext.onReady(function(){
        new CMONO.UploadWindow({
            url:'http://localhost:6666/flex/uploadfiles.php',
            uploadButtonText: '点击上传',
            selectButtonText: '点击选择',
            allowKey: 'nodebug'//清除版权标识
        }).show();
    });
</script>
</html>


知识共享许可协议
《ExtJS Flash 上传组件》常伟华 创作。
采用 知识共享 署名-相同方式共享 3.0 中国大陆 许可协议进行许可。
  • 多说评论
  • 签名
  • 新浪微博
  • 默认评论
  • Tab Header 5

1 条评论 / 点击此处发表评论

Tab Content 5

开发技术


开发平台和工具

sitemap     160.06ms