<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Paul! You're THE Best! Thx! in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116454#M74255</link>
    <description>&lt;P&gt;Paul! You're THE Best! Thx!&lt;/P&gt;</description>
    <pubDate>Wed, 04 May 2016 19:24:42 GMT</pubDate>
    <dc:creator>BRema</dc:creator>
    <dc:date>2016-05-04T19:24:42Z</dc:date>
    <item>
      <title>getJSON no longer working when using Intel XDK APP Preview</title>
      <link>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116452#M74253</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm trying to acces JSON-data on another server. My code works in the emulator and without the XDK (simply on a local webserver) but on my device it fails to get the JSON data.&lt;/P&gt;

&lt;P&gt;I've added the following to the head in my index.html:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;&amp;lt;script src="intelxdk.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script src="xhr.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;/PRE&gt;

&lt;P&gt;My javascript code is the following:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;function get_market_list(){
    var url = "xxxxxxxxxxxxxx";
    $.getJSON(url, function(result, status, jqXHR){
        var data = $.parseJSON(jqXHR.responseText);
        var mlist = '&amp;lt;ul data-role="listview" data-inset="true"&amp;gt;';
        $.each(data.response, function(index, val){
            mlist += '&amp;lt;li&amp;gt;&amp;lt;a href="#" class="ui-btn" data-transition="slidefade" name="market_item" id="' + val.symbol + '"&amp;gt;' + val.name + '&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;';
        });
        document.getElementById("mlist").innerHTML = mlist + '&amp;lt;/ul&amp;gt;';
    });
}
&lt;/PRE&gt;

&lt;P&gt;The config-files have the default value:&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
	&lt;P&gt;&amp;lt;access origin="*"/&amp;gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Using Intel XDK: 3240&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;STRONG&gt;Everything works correct in: Chrome Browser on Laptop, Chrome Browser on Mobile Device (Android)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Don't know what settings I'm missing?&lt;/P&gt;

&lt;P&gt;Kind regards,&lt;/P&gt;

&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 16:00:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116452#M74253</guid>
      <dc:creator>BRema</dc:creator>
      <dc:date>2016-05-04T16:00:00Z</dc:date>
    </item>
    <item>
      <title>Please see this FAQ &gt; https:/</title>
      <link>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116453#M74254</link>
      <description>&lt;P&gt;Please see this FAQ &amp;gt;&amp;nbsp;https://software.intel.com/en-us/xdk/faqs/app-designer#ajax-jquery-one-fail &amp;lt; it likely is the source of your issue.&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 18:37:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116453#M74254</guid>
      <dc:creator>PaulF_IntelCorp</dc:creator>
      <dc:date>2016-05-04T18:37:28Z</dc:date>
    </item>
    <item>
      <title>Paul! You're THE Best! Thx!</title>
      <link>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116454#M74255</link>
      <description>&lt;P&gt;Paul! You're THE Best! Thx!&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2016 19:24:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/getJSON-no-longer-working-when-using-Intel-XDK-APP-Preview/m-p/1116454#M74255</guid>
      <dc:creator>BRema</dc:creator>
      <dc:date>2016-05-04T19:24:42Z</dc:date>
    </item>
  </channel>
</rss>

