I am programming an iPhone application using Phonegap. I have local .html and .js files. My index.html file contains the following:
function onBodyLoad() { document.addEventListener("deviceready", deviceReady, false); } function deviceReady() { $.getScript("js/order.js"); }
I researched and researched, but just can't understand why my "order.js" file is not called by the $.getScript method. Any ideas? Or is there another way to call this .js file inside the deviceReady function in my index.html ?
source share