hi guys, pls give a help. I encountered a problem to read data from JasonStore.

Jason data in server:

{ totalCount: 2, appointments: [
{ id: '1', s: 10, e: 14, loc:'location1', subj:'subject1', w:100, l:0 },
{ id: '1', s: 16, e: 18, loc:'location2', subj:'subject2', w:100, l:0 }
]
}

Jason store:

var store =new Ext.data.JsonStore({

url
:'dailyAppointment.jsp',

root
:'appointments',

totalProperty
:'totalCount',

id
:'id',

fields
:['id',{

name
:'s',

type
:'float'

},{

name
:'e',

type
:'float'

},'loc','subj',{

name
:'w',

type
:'float'

},{

name
:'l',

type
:'float'

}]

});

store
.load();

alert
(store.getCount());

alert
(store.getTotalCount());

var appointmentBoxHtml ='';

store
.each(function(r){

appointmentBoxHtml
+= getAppointmentBoxHtml(r.get('id'), r.get('s'), r.get('e'), r.get('locaton'), r.get('subject'), r.get('w'), r.get('l'));

});

why it can not read the data? store.getCount() is zero, and also store.getTotalCount(). But I found a http request to request 'dailyAppointment.jsp'