php - Unable to get the JSON response from server into the store after form submission in Extjs -
i have login form submits username, password values server on submit button click.
var form = this.up('form').getform(); if (form.isvalid()) { form.submit({ url: '', //this url 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); } }); }
but after submit button click web page (web app) getting redirected url have provided form submission showing response server.
i need store json response server store without getting redirected , stay on same page.
please me in solving this.
thanks in advance.
set standardsubmit property of form false:
ext.create('ext.form.panel', { standardsubmit: false, ...
Comments
Post a Comment