浏览 1343 次
|
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
|---|---|
| 作者 | 正文 |
|
时间:2007-12-24
在Ext2.0里面,做了一个form表单提交,然后当事情处理完后,我要要跳转到另外一个其它的动态页面,应该诈么搞?
声明:JavaEye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
|
|
| 返回顶楼 | |
|
时间:2007-12-24
location.href='forward.jsp';
|
|
| 返回顶楼 | |
|
时间:2007-12-24
感觉好象也是要在页面用JS控制。
|
|
| 返回顶楼 | |
|
时间:2007-12-24
供参考
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();
}
});
|
|
| 返回顶楼 | |





