- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I'm big problem, I developed an APP, it works fine in the emulator but when I run it in Builder and install the mobile AJAX does not work, I tried every way put the Whiltelist with "*" but it worked. Could someone tell me if I need to include a plug-in index.html? XDK put in the config the asterisks but did not work well. Follow the prints of my code.
- Tags:
- HTML5
- Intel® XDK
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Don't trigger your app off the document ready event, the Cordova subsystem is not yet ready. You need to trigger off device ready. Or, if you include the init-dev.js file, you can trigger off the app.Ready event, which combines device ready and document ready.
The Cordova features, including the whitelist feature, are not available until the cordova.js subsystem has finished initialization. That initialization occurs in the native code part of your app, which runs in a separate thread.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Good morning, thank you for your help.
My code is so now, tell me what the correct order to let the JS.
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile.structure-1.4.5.min.css" />
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"></script>
<script src = "intelxdk.js"> </ script>
<script src = "cordova.js"> </ script>
<script src = "xhr.js"> </ script>
<script src = "js / app.js"> </ script>
<script src = "js / init-app.js"> </ script>
<script src = "XDK / init-dev.js"> </ script>
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Do not load files from a network, if your user's device has no network connection, or has a flaky network connection, your app is going to be "dead in the water." It will freeze and not start, resulting in a very unhappy user. You need to download those libraries and copy them into your project folders (somewhere inside of the www directory) and then reference them locally (similar to the others in the list).
The order you have should be fine, once you fix how you load those CSS nad JS files. Also, you can get rid of the intelxdk.js and xhr.js file, they are no longer required.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hello my friends good night, I can not do AJAX with external LINK PHP work, it simply in Android goes unanswered.
In crosswalk Android works perfectly, but when generate only for Android and install the phone it does not.
I looked like the prints of my settings, to know what I did wrong.
The solution would be to insert this code in my index.html ?
Content Security Policy:
<meta http-equiv=“Content-Security-Policy” content=“default-src ‘self’ data: gap” https://ssl.gstatic.com; style-src ‘self’ ‘unsafe-inline’; media-src *”>
<meta http-equiv=“content-Security-Policy” contnet=“default-src ‘self’ https:”>
I thank you again for your help.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Crosswalk builds are for Android. Do not use the Android-only builds unless you have a very good reason. The 2.x and 4.x Android webviews are inconsistent, unreliable and based on very old web runtimes. This is one of the key reasons we provide the Crosswalk solution.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite