【问题标题】:How update Ext.Window如何更新 Ext.Window
【发布时间】:2013-09-26 19:26:41
【问题描述】:

我有网格面板和每个带有处理程序的行按钮(使用选择器.js)

http://dev.sencha.com/deploy/ext-3.4.0/examples/view/chooser.html

在 html 按钮中:

function deleteImage(data){
   window.open("http://host/delete_file.php?file="+data.url,"_self");
};

function choose(btn){
    if(!chooser){
            chooser = new ImageChooser({
                    url:'http://host/get-images.php?path='+r.get('dtp'),
                    width:600,
                    height:350
            });
    }
    chooser.show(btn.getEl(), deleteImage);
};
                                            btn = new Ext.Button({
                                                             renderTo: id2,
                                                             text: 'Удалить',
                                                             width: 75,
                                                             handler: choose
                                            });

如果我取消窗口(带有图像)并在另一行打开,然后打开带有第一张图像的第一个窗口(不是来自新行)。

在chooser.js 中取消按钮:

                            {
                                    text: 'Cancel',
                                    handler: function(){ this.win.hide();},
                                    scope: this
                            }

没有关闭。

打开新窗口后如何更新内容(新行的图像)?

【问题讨论】:

    标签: extjs3


    【解决方案1】:

    它工作:

    function choose(v){
            new ImageChooser({
                    url:'http://host/get-images.php?path='+r.get('dtp'),
                    width:600,
                    height:350
            }).show(v, deleteImage);
      };
                                                 new Ext.Button({
                                                             renderTo: id2,
                                                             text: 'Удалить',
                                                             width: 75,
                                                             handler: choose
                                            });
    

    【讨论】:

      猜你喜欢
      • 2015-07-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多