答复: Ext2.0 Form表单提交然后跳转到其它页面问题。

供参考
    var simple = new Ext.form.FormPanel({
        labelWidth: 55, // label settings here cascade unless overridden
        frame:true,
        bodyStyle:'padding:5px 5px 0',
        width: 230,
        defaults: {width: 120},
        defaultType: 'textfield',
        renderTo: 'div_search',

        items: [{
                fieldLabel: searchLabel,
                name: 'keyword',
                id:'keyword',
                allowBlank:true
            },new SearchComboBox({
                hiddenName: 'scope',
                url: './builder.do?button(loadFields)&field(entity)='+config.entity,
                emptyText:scopeLabel,
                label:scopeLabel
            })
        ],

        buttons: [{
            text: searchButtonText,type:'submit',
            handler: function(e){
                simple.submit();
            }
        }],

        onSubmit: Ext.emptyFn,
        submit: function() {
            var form = simple.getForm().getEl().dom;
            form.action = "./"+config.name+".do?button(popup)";
            form.target='master_list';
            form.submit();
        }
    });

你可能感兴趣的:(ext)