答复: 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();
}
});
代码很实用,谢谢这位仁兄~~
非常感谢您提供的代码,已成功跳转到相应的页面,有些参数,希望您给解释一下: