By default, a FormPanel
in ExtJS 3.1.0 posts the form fields as application/x-www-form-urlencoded
when you call its submit() function.
Is there any way to get it to post JSON instead?
By default, a FormPanel
in ExtJS 3.1.0 posts the form fields as application/x-www-form-urlencoded
when you call its submit() function.
Is there any way to get it to post JSON instead?
You probably want to extend Ext.form.Action.Submit
to encode the params as JSON instead of url-encoding them in the body.
You can use getValues()
to pull the values and then Ext.encode()
them and manually do an Ext.Ajax.request({})
with this data as well.