Note that there are some explanatory texts on larger screens.

plurals
  1. POintel-xdk html5 platform android aplication working properly in emulator but not working properly in device
    primarykey
    data
    text
    <p>I have included a php file using javascript function getApi() it working properly in my intel-xdk emulator but when i load it in to my android device it will not working properly so pleas tell me what's wrong with my code , and my device is also connected with internet so it may able to retrive data from the server ,but it can't<br> </p> <pre><code>&lt;head&gt; &lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"&gt;&lt;/script&gt; &lt;link rel="stylesheet" type="text/css" href="app_framework/css/af.ui.min.css"&gt; &lt;link rel="stylesheet" type="text/css" href="app_framework/css/icons.min.css"&gt; &lt;meta charset="UTF-8"&gt; &lt;link rel="stylesheet" type="text/css" href="css/index_main.less.css" class="main-less"&gt; &lt;title&gt;Your New Application&lt;/title&gt; &lt;meta http-equiv="Content-type" content="text/html; charset=utf-8"&gt; &lt;meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0"&gt; &lt;style type="text/css"&gt; /* Prevent copy paste for all elements except text fields */ * { -webkit-user-select:none; -webkit-tap-highlight-color:rgba(255, 255, 255, 0); } input, textarea { -webkit-user-select:text; } &lt;/style&gt; &lt;script src="intelxdk.js"&gt; &lt;/script&gt; &lt;script type="text/javascript"&gt; /* This code is used to run as soon as Intel activates */ var onDeviceReady=function(){ //hide splash screen intel.xdk.device.hideSplashScreen(); }; document.addEventListener("intel.xdk.device.ready",onDeviceReady,false); function getApi() { alert("Yes"); $.ajax({ type: "GET", url: "http://exam.coreducation.in/api.php", success: function(data){ var total = ""; var record = JSON.parse( data ); for(i=0; i&lt;record.length; i++){ total += ("Contact: "+record[i]['contact']+", Name: "+record[i]['name']+", City: "+record[i]['city'] + "&lt;br/&gt;"); } $('#ddata').html("&lt;h4 style='text-align:center'&gt;"+total+"&lt;/h4&gt;") } }); } &lt;/script&gt; &lt;script type="application/javascript" src="app_framework/appframework.min.js"&gt;&lt;/script&gt; &lt;script type="application/javascript" src="app_framework/appframework.ui.min.js"&gt;&lt;/script&gt; &lt;/head&gt; &lt;body id="afui"&gt; &lt;!-- content goes here--&gt; &lt;div class="uwrap" id="content"&gt; &lt;div class="upage panel" id="page0" data-header="none" data-footer="none"&gt; &lt;div class="upage-outer"&gt; &lt;div class="upage-content"&gt; &lt;div class="grid grid-pad urow uib_row_1 row-height-1" data-uib="layout/row"&gt; &lt;div class="col uib_col_1 col-0_12-12" data-uib="layout/col"&gt; &lt;div class="widget-container content-area vertical-col"&gt; &lt;a class="button widget uib_w_1 d-margins icon graph" data-uib="app_framework/button" onclick="return getApi();"&gt;GetApiData&lt;/a&gt;&lt;span class="uib_shim"&gt; &lt;/span&gt; &lt;div id="ddata"&gt;DAta Will Show Here&lt;/div&gt; &lt;/div&gt; &lt;/div&gt; &lt;span class="uib_shim"&gt;&lt;/span&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- /upage-content --&gt; &lt;/div&gt; &lt;!-- /upage-outer --&gt; &lt;/div&gt; &lt;/div&gt; &lt;!-- /uwrap --&gt; &lt;/body&gt; &lt;/html&gt;`enter code here` </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload