All Questions

240
votes
5answers
142539 views

jQuery Mobile: document ready vs. page events

I am using jQuery Mobile, and I am having trouble understanding differences between classic document ready and jQuery Mobile page events. What is the real difference? Why should <!-- language: ...
67
votes
2answers
35229 views

jQuery Mobile: Markup Enhancement of dynamically added content

I was wondering how can I enhance dynamically jQuery Mobile page? I have tried to use these methods: $('[data-role="page"]').trigger('create'); and $('[data-role="page"]').page(); Also how can I...
23
votes
3answers
19137 views

Why I have to put all the script to index.html in jquery mobile

I have used $.mobile.changepage to do the redirect in my phonegap+jquerymobile projects. However what makes me confused is that I need to put the script of all the pages to the same file index.html. I...
75
votes
6answers
64340 views

Communication between Android Java and Phonegap Javascript?

I believe that it's possible to call Java methods from (PhoneGap) Javascript. Anyone knows how to do that?? (I know how to do it by changing the source code of PhoneGap, but I'd avoid that)
76
votes
8answers
186825 views

How To Save Canvas As An Image With canvas.toDataURL()?

I'm currently building a HTML5 web app/Phonegap native app and I can't seem to figure out how to save my canvas as an image with canvas.toDataURL(). Can somebody help me out? Here's the code, what's ...
42
votes
9answers
77135 views

HTML file input in android webview (android 4.4, kitkat)

I was using the <input type="file"> on the android webview. I got it working thanks to this thread: File Upload in WebView But the accepted answer (or any other) no longer works with android 4...
22
votes
9answers
53959 views

Phonegap - Save image from url into device photo gallery

I'm developing phonegap application and I need to save Image from url to the Device Photo Gallery. I can't find at the Phonegap Api a way for doing it and Also I didn't find phonegap plugin for that....
22
votes
2answers
12013 views

Cordova app hanging during startup on iOS 10

I just installed Xcode 8 beta in order to test my existing Cordova app in iOS 10 beta (via Simulator). When the app is launched, it just hangs on the loading page - seems the deviceready event is not ...
164
votes
17answers
304511 views

Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.

I'm trying to install PhoneGap and I'm getting the following error: Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions. Erro...
79
votes
13answers
101099 views

How to add app icon within phonegap projects?

I created a new phonegap (v 3.0.0-0.14.0) project with default config.xml and then added iOS and Android platforms. The config contains all the paths to all platform icons. I have overwritten the de...

Previous Next