extjs:使用FormPanel提交功能时打开一个新窗口

标签 extjs window submit new-operator formpanel

嘿嘿, 我正在创建一个 Formpanel:

inputForm = new Ext.FormPanel({
    id:'inputForm',
    frame: true,
    closable:true,
    collapsible:true,
    renderTo:'somewhere',
    layout:'anchor',
    standardSubmit:true,
    method: 'post',
    items:[{ ... }]
)};

并使用此提交按钮:

  text:'run',
  id: 'runButton',
  handler:function(){
         Ext.getCmp('inputForm').getForm().submit();
  }

如何在新窗口/选项卡中打开提交页面???

最佳答案

检查这个sencha forum link

相关代码片段:

    form.submit({
        target : '_blank',
        url  : 'refdata/exportToXLS.do'
    });

关于extjs:使用FormPanel提交功能时打开一个新窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6150301/

相关文章:

javascript - 如何知道在多选组合框中选择了多少个项目

window - "mrt.exe._p"和 "mrstub.exe"文件

javascript - 查找打开的窗口

javascript - 停止使用 native javascript 提交表单

javascript - 在 Ext 中使用 XTemplate 和 SimpleStore

javascript - 如何使用生成具有多个数据存储的树?

javascript - 在提交时在新选项卡中打开表单点击

jquery mobile 阻止提交

javascript - Extjs间歇性错误

Delphi:检测窗口移动的开始和结束