I have a json file in my www folder. I am trying to load it using ajax request:
Code:
Ext.Ajax.request({
url: "file1.json",
success: function(response, opts) {
console.log("success");
}, this),
failure: function(response, opts) {
console.log("fail");
}
})
I am using PhoneGap 1.4.1. This works on Android. But fails on iPhone. Does anyone what the correct url should be for loading a local json file?
I am not including it in a script tag in my index.html, because there could be many. I want to load them on demand.