Posted on September 29, 2011
greenhawk
I am working on a Ext-JS web application which needs to send data to the PHP server side to store. It took me a while to find out how to decodes the receiving JSON string in PHP.
Ext-JS
Assume you have a model and calling save to send a ajax request.
[code]
Ext.define('User', {
extend: 'Ext.data.Model',
fields: ['id', 'name', 'email'],
proxy: {
type: 'ajax',
url : '/users'
}
});
var user = Ext.create('User', {name: 'Ed Spencer', email: 'ed@...