i Have this piece of code for load a json file stored in the same directory of phonegap ( iPhone ) project ( usually in the “www” folder ), how can i reach “routes.json” ?. My project have this tree folder:
__www/
___index.html
___index.json ( where is located this code )
___routes.json*
store: new Ext.data.Store({
model : 'routes',
proxy: {
type: 'ajax',
url : 'file://??????/www/routes.json',
reader: {
type: 'json'
}
},
autoLoad: true
})
I think that this is a bug in the Sencha Touch Ext.data.Proxy implementation. I spent a couple hours trying to get this work and was unsuccessful. It took me less than 5 minutes to implement it using jQuery.