<?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 Problem AJAX call in ios build in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Problem-AJAX-call-in-ios-build/m-p/1121982#M76433</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Whenever I build my project for iOS and install it on a iphone the ajax call below fails silently (no alerts).&lt;BR /&gt;
	In a mobile browser &amp;nbsp;on the same device it works fine though. JQuery is initialised correctly, any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;PRE style="background-color:#2b2b2b;color:#a9b7c6;font-family:'Menlo';font-size:9.0pt;"&gt;&lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;var &lt;/SPAN&gt;jqxhr = &lt;SPAN style="color:#9876aa;"&gt;$&lt;/SPAN&gt;.&lt;SPAN style="color:#ffc66d;"&gt;ajax&lt;/SPAN&gt;({
            &lt;SPAN style="color:#9876aa;"&gt;method&lt;/SPAN&gt;: &lt;SPAN style="color:#6a8759;"&gt;"POST"&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#9876aa;"&gt;url&lt;/SPAN&gt;: &lt;SPAN style="color:#6a8759;"&gt;"http://192.168.0.2:9292/db.php"&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#9876aa;"&gt;crossDomain&lt;/SPAN&gt;: &lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#9876aa;"&gt;data&lt;/SPAN&gt;: { &lt;SPAN style="color:#9876aa;"&gt;action&lt;/SPAN&gt;: &lt;SPAN style="color:#6a8759;"&gt;"doSomething"&lt;/SPAN&gt;}&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#ffc66d;"&gt;error&lt;/SPAN&gt;: &lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;function&lt;/SPAN&gt;(){
                console.&lt;SPAN style="color:#ffc66d;"&gt;log&lt;/SPAN&gt;(data)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color:#ffc66d;"&gt;alert&lt;/SPAN&gt;(&lt;SPAN style="color:#6a8759;"&gt;'There was an error'&lt;/SPAN&gt;)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;}
        } )
        .&lt;SPAN style="color:#9876aa;"&gt;done&lt;/SPAN&gt;(&lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;function&lt;/SPAN&gt;(result) {
            &lt;SPAN style="color:#ffc66d;"&gt;alert &lt;/SPAN&gt;(&lt;SPAN style="color:#6a8759;"&gt;"COMPLETE!"&lt;/SPAN&gt;)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;        &lt;/SPAN&gt;})
        .&lt;SPAN style="color:#ffc66d;"&gt;fail&lt;/SPAN&gt;(&lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;function&lt;/SPAN&gt;(request&lt;SPAN style="color:#cc7832;"&gt;, &lt;/SPAN&gt;status&lt;SPAN style="color:#cc7832;"&gt;, &lt;/SPAN&gt;error) {
            &lt;SPAN style="color:#ffc66d;"&gt;alert  &lt;/SPAN&gt;( &lt;SPAN style="color:#6a8759;"&gt;"error loading data" &lt;/SPAN&gt;)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;        &lt;/SPAN&gt;})&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 May 2016 06:53:28 GMT</pubDate>
    <dc:creator>Theo_v_</dc:creator>
    <dc:date>2016-05-10T06:53:28Z</dc:date>
    <item>
      <title>Problem AJAX call in ios build</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-AJAX-call-in-ios-build/m-p/1121982#M76433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Whenever I build my project for iOS and install it on a iphone the ajax call below fails silently (no alerts).&lt;BR /&gt;
	In a mobile browser &amp;nbsp;on the same device it works fine though. JQuery is initialised correctly, any suggestions?&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;

&lt;PRE style="background-color:#2b2b2b;color:#a9b7c6;font-family:'Menlo';font-size:9.0pt;"&gt;&lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;var &lt;/SPAN&gt;jqxhr = &lt;SPAN style="color:#9876aa;"&gt;$&lt;/SPAN&gt;.&lt;SPAN style="color:#ffc66d;"&gt;ajax&lt;/SPAN&gt;({
            &lt;SPAN style="color:#9876aa;"&gt;method&lt;/SPAN&gt;: &lt;SPAN style="color:#6a8759;"&gt;"POST"&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#9876aa;"&gt;url&lt;/SPAN&gt;: &lt;SPAN style="color:#6a8759;"&gt;"http://192.168.0.2:9292/db.php"&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#9876aa;"&gt;crossDomain&lt;/SPAN&gt;: &lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;true&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#9876aa;"&gt;data&lt;/SPAN&gt;: { &lt;SPAN style="color:#9876aa;"&gt;action&lt;/SPAN&gt;: &lt;SPAN style="color:#6a8759;"&gt;"doSomething"&lt;/SPAN&gt;}&lt;SPAN style="color:#cc7832;"&gt;,
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;&lt;SPAN style="color:#ffc66d;"&gt;error&lt;/SPAN&gt;: &lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;function&lt;/SPAN&gt;(){
                console.&lt;SPAN style="color:#ffc66d;"&gt;log&lt;/SPAN&gt;(data)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;                &lt;/SPAN&gt;&lt;SPAN style="color:#ffc66d;"&gt;alert&lt;/SPAN&gt;(&lt;SPAN style="color:#6a8759;"&gt;'There was an error'&lt;/SPAN&gt;)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;            &lt;/SPAN&gt;}
        } )
        .&lt;SPAN style="color:#9876aa;"&gt;done&lt;/SPAN&gt;(&lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;function&lt;/SPAN&gt;(result) {
            &lt;SPAN style="color:#ffc66d;"&gt;alert &lt;/SPAN&gt;(&lt;SPAN style="color:#6a8759;"&gt;"COMPLETE!"&lt;/SPAN&gt;)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;        &lt;/SPAN&gt;})
        .&lt;SPAN style="color:#ffc66d;"&gt;fail&lt;/SPAN&gt;(&lt;SPAN style="color:#cc7832;font-weight:bold;"&gt;function&lt;/SPAN&gt;(request&lt;SPAN style="color:#cc7832;"&gt;, &lt;/SPAN&gt;status&lt;SPAN style="color:#cc7832;"&gt;, &lt;/SPAN&gt;error) {
            &lt;SPAN style="color:#ffc66d;"&gt;alert  &lt;/SPAN&gt;( &lt;SPAN style="color:#6a8759;"&gt;"error loading data" &lt;/SPAN&gt;)&lt;SPAN style="color:#cc7832;"&gt;;
&lt;/SPAN&gt;&lt;SPAN style="color:#cc7832;"&gt;        &lt;/SPAN&gt;})&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 06:53:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-AJAX-call-in-ios-build/m-p/1121982#M76433</guid>
      <dc:creator>Theo_v_</dc:creator>
      <dc:date>2016-05-10T06:53:28Z</dc:date>
    </item>
    <item>
      <title>AJAX calls are blocked by</title>
      <link>https://community.intel.com/t5/Software-Archive/Problem-AJAX-call-in-ios-build/m-p/1121983#M76434</link>
      <description>&lt;P&gt;AJAX calls are blocked by default&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;I forgot to white-list the domain in the IOS Build settings:&lt;/SPAN&gt;&lt;BR /&gt;
	&lt;SPAN style="font-size: 1em; line-height: 1.5;"&gt;&lt;A href="https://software.intel.com/en-us/xdk/articles/cordova-cli-412-domain-whitelisting-with-intel-xdk-for-ajax-and-launching-external-apps" target="_blank"&gt;https://software.intel.com/en-us/xdk/articles/cordova-cli-412-domain-whitelisting-with-intel-xdk-for-ajax-and-launching-external-apps&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2016 07:15:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Problem-AJAX-call-in-ios-build/m-p/1121983#M76434</guid>
      <dc:creator>Theo_v_</dc:creator>
      <dc:date>2016-05-10T07:15:59Z</dc:date>
    </item>
  </channel>
</rss>

