katamshut
14 Sep 2011, 5:55 PM
Hi everybody
I have a problem with my ajaxproxy. It's defined within my store:
proxy: {
type: 'ajax',
url : 'calendarData.php',
reader: {
type: 'json',
root: 'calendarList'
},
extraParams: {
action: 'load'
}
}
here I fire a request:
this.store.load({
scope : this,
callback: function(records, operation, success) {
alert(success);
}
});
which returns the following JSON:
{"success":false, "calendarList": [{"id":"20110...xed","prio_cd":"0"}]}
The Proxy just reads the calendar list and ignores simply the "success: false". Why?
I read for hours the api to find a place which describes how to catch an success: false.. but I wasn't able to I-|
thx for any hints on this.
I have a problem with my ajaxproxy. It's defined within my store:
proxy: {
type: 'ajax',
url : 'calendarData.php',
reader: {
type: 'json',
root: 'calendarList'
},
extraParams: {
action: 'load'
}
}
here I fire a request:
this.store.load({
scope : this,
callback: function(records, operation, success) {
alert(success);
}
});
which returns the following JSON:
{"success":false, "calendarList": [{"id":"20110...xed","prio_cd":"0"}]}
The Proxy just reads the calendar list and ignores simply the "success: false". Why?
I read for hours the api to find a place which describes how to catch an success: false.. but I wasn't able to I-|
thx for any hints on this.