开发者

Using jQueryMoblie and phonegap in Android

I use phonegap and jQueryMoblie in android, when I run the program, it cannon use the phonegap function but it can show jQueryMoblie behavior:

<a href="gps.html"><input type="button" value="GPS" /></a>

another case, i can run the function but cannot show jQueryMoblie behavior:

<input type="butto开发者_如何学运维n" value="Camera" onclick="document.location.href='gps.html'" />

how can i use both function in the program?


If I understood you correctly, this should work for you:

 <a href="gps.html" data-role="button">Camera</a>

Hope this helps


First I don`t really get the point of your question. But I just trying to to help, or you can be more specific :D. Are you sure you have added phonegap.js in your project? As far as I know to make phonegap API working, you have to add phonegap.js in your html page. Then you can access hardware through phonegap API.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜