i'm writing mobile app html5, javascript , css3. i'm using phonegap.
so if use this.
document.addeventlistener("deviceready", ondeviceready, false); function ondeviceready() { document.addeventlistener("backbutton", onbackkeydown, false); } function onbackkeydown() { alert("test"); }
i error:
cordova : must have cordova.js included in projects, able trigger events.
i'm using ripple emulate smartphone. , right. don't have cordova.js
in project folder, because don't know it. have downloaded newest version 2.9.0 of phonegap , using specially cordova-mobile-spec.
there no cordova.js
cordova-incl.js
. how obtain file?
check cordova.js
inside new project created (by using command line)
or
check lib folde inside downloaded cordova zip file
for ios check cordovalib folder
android
please check libs folder of each platform.
Comments
Post a Comment