Porting a web app to phoneGap on iOS, we have asset (and ajax) URLs that are absolute paths, e.g.:
We hav
One can get the path to the application in JavaScript by:
cordova.file.applicationDirectory
Since I'm on Android, it says: "file:///android_asset/" ...for example:
var img_path = cordova.file.applicationDirectory + 'www/img/logo.png';
Like this all resources would be found when cross-building for various platforms.