ajax - Intel XDK v0876: $.get() not working on device via App Preview (Android nor WIndows), but works in emulator -



ajax - Intel XDK v0876: $.get() not working on device via App Preview (Android nor WIndows), but works in emulator -

i have next code in intel xdk project working in emulator ajax $.get() phone call homecoming info on android or windows in app preview:

<script> function updatebalancepagecontent() { var balanceurl = 'http://cryptexplorer.com/chain/uro/q/addressbalance/urkzlbuvyjvg9rnt8ezdu4jyizjtqetwbh'; $.get(balanceurl, function(data) { $("#acc-bal-lbl").text("balance: " + data); }); }); </script> <p id="acc-bal-lbl"></p> <a class="icon info" href="javascript:switchsubpage('uro-balance-page'); updatebalancepagecontent();">balance</a>

any ideas should start solve problem?

when utilize weinre based live debugger , seek $.get("http://google.com"); in console, resulting xmlhttprequest has no responsetext.

you experiencing issue associated cross origin resource sharing. recommend include reference xhr.js script in head tag of index.html file. should resolve issue.

<script src="xhr.js"></script>

android ajax html5 web intel

Comments

Popular posts from this blog

model view controller - MVC Rails Planning -

ruby on rails - Devise Logout Error in RoR -

html - Submenu setup with jquery and effect 'fold' -