PDA

View Full Version : Problems getting data from an ASP.NET web service using the POST method



MihaelaCiocoiu
11 Nov 2010, 7:26 AM
Hello everybody,

I'm trying to get some data in JSON format from an ASP.NET web service using the POST method, but I've got an error and no response: Uncaught TypeError: Object #<an Object> has no method 'on'.

My code is:

store = new Ext.data.JsonStore({
autoLoad: true,

proxy:new Ext.data.HttpProxy({
type: 'ajax',
method:'post',
headers: {'Content-Type': 'application/json;charset=utf-8;' },
url : '.....'

}),

root: 'd',
idProperty:'id',
fields: ['id','name', 'color'],


});


What I am doing wrong? Could somebody help me?

Thanks in advance