PDA

View Full Version : Local Storage and json p sync



borden0108
23 Oct 2011, 1:35 AM
Hi all,

i have this json p request but i want to put the response into local storage and then read it into a list.

i have been trying the tourtials but i cant get it to work





//The local store:


var localUser = new Ext.data.Store({
model: 'timetable',
proxy: {
type: 'localstorage',
id : 'localUser',
proxy: {
idProperty: 'id'
}
}
});


//This gets the file.


Ext.util.JSONP.request({
url :'https://intranet.trinity.vic.edu.au/timetable/getTimetable.asp?synID=300068&room=0&year=2011&term=4&day=2&callType=student',
callback: function(result) {

}
});




My file will not be available so feel free to use one of your own\

matt