Being a newcomer to ExtJs and having a dislike for JavaScript, I find myself in a situation where I have to work with it. Below is the code that I currently have:
var proxy = new Ext.data.HttpProxy(
{
url: 'sf/listUsers',
headers: {'Content-Type': 'application/json'}
}
);
var store = new Ext.data.JsonStore({
proxy: proxy,
remoteSort: true,
sortInfo: { field: "username", direction: "ASC" },
totalProperty: 'count',
root: 'users',
fields: ['username', 'id'],
writer : new Ext.data.JsonWriter({
encode : true,
writeAllFields : true
})
});
Upon testing the page, I encounter an issue where the grid does not display anything. Upon inspecting in chrome, I notice that the request's content-type is text/html.