0
我有一个登录表单,它在提交按钮单击时将用户名,密码值提交给服务器。在Extjs中提交表单提交后,无法从服务器获得JSON响应
var form = this.up('form').getForm();
if (form.isValid()) {
form.submit({
url: '', //this is the url where the form gets submitted
success: function(form, action) {
Ext.Msg.alert('Success', action.result.msg);
},
failure: function(form, action) {
Ext.Msg.alert('Failed', action.result.msg);
}
});
}
但提交按钮后点击网页(Web应用程序)时被重定向到我已经提供了展示来自服务器的响应表单提交的URL。
我需要将来自服务器的JSON响应存储到商店中,而无需重定向并保持在同一页面上。
请帮我解决这个问题。
在此先感谢。形式的假
非常感谢您的回答...它的工作! :) – user2274441