<?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 xhttp.status returning 0 on Android in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079481#M61033</link>
    <description>&lt;P&gt;My Application need to connect to an server, it works on IOS, but on Android not.&lt;/P&gt;

&lt;P&gt;On IOS they return code 200, 404 etc&lt;/P&gt;

&lt;P&gt;On Android they only return 0, for error, succes, anything!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;My code:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;     var xhttp = new XMLHttpRequest();
              xhttp.open("GET", HTTP, true);
        xhttp.onreadystatechange = function() {
            alert(xhttp.status);
    if ((xhttp.readyState == 4 &amp;amp;&amp;amp; xhttp.status == 200) || (xhttp.readyState == 4 &amp;amp;&amp;amp; xhttp.status == 0)) {
      document.getElementById("SIFrame").value = xhttp.responseText;
        TA = TXTIFrame.value;
        lines=TA.split("\n");
        document.getElementById("LineE").innerHTML = lines[LE];
        A1B.innerHTML = lines[R1];
        A2B.innerHTML = lines[R2];
        A3B.innerHTML = lines[R3];
        A4B.innerHTML = lines[R4];
        A5B.innerHTML = lines[R5];
         activate_page("#readerpage");
    
                
    } else {
        if(MSG == false &amp;amp;&amp;amp; xhttp.status == 404) {
                    alert("Esse arquivo não pode ser encontrado, verifique sua conexão com a internet!")
                    MSG = true;
        }
    }&lt;/PRE&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2016 17:29:51 GMT</pubDate>
    <dc:creator>Joao_V_</dc:creator>
    <dc:date>2016-04-07T17:29:51Z</dc:date>
    <item>
      <title>xhttp.status returning 0 on Android</title>
      <link>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079481#M61033</link>
      <description>&lt;P&gt;My Application need to connect to an server, it works on IOS, but on Android not.&lt;/P&gt;

&lt;P&gt;On IOS they return code 200, 404 etc&lt;/P&gt;

&lt;P&gt;On Android they only return 0, for error, succes, anything!&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;My code:&lt;/P&gt;

&lt;PRE class="brush:jscript;"&gt;     var xhttp = new XMLHttpRequest();
              xhttp.open("GET", HTTP, true);
        xhttp.onreadystatechange = function() {
            alert(xhttp.status);
    if ((xhttp.readyState == 4 &amp;amp;&amp;amp; xhttp.status == 200) || (xhttp.readyState == 4 &amp;amp;&amp;amp; xhttp.status == 0)) {
      document.getElementById("SIFrame").value = xhttp.responseText;
        TA = TXTIFrame.value;
        lines=TA.split("\n");
        document.getElementById("LineE").innerHTML = lines[LE];
        A1B.innerHTML = lines[R1];
        A2B.innerHTML = lines[R2];
        A3B.innerHTML = lines[R3];
        A4B.innerHTML = lines[R4];
        A5B.innerHTML = lines[R5];
         activate_page("#readerpage");
    
                
    } else {
        if(MSG == false &amp;amp;&amp;amp; xhttp.status == 404) {
                    alert("Esse arquivo não pode ser encontrado, verifique sua conexão com a internet!")
                    MSG = true;
        }
    }&lt;/PRE&gt;

&lt;P&gt;Thanks for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:29:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079481#M61033</guid>
      <dc:creator>Joao_V_</dc:creator>
      <dc:date>2016-04-07T17:29:51Z</dc:date>
    </item>
    <item>
      <title>@Joao&gt; maybe this post helps</title>
      <link>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079482#M61034</link>
      <description>&lt;P&gt;@Joao&amp;gt; maybe this post helps you:&amp;nbsp;https://software.intel.com/en-us/comment/1867247#comment-1867247, thread&amp;nbsp;Paul F. (Intel) &amp;nbsp;Wed, 04/06/2016 - 08:57&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 19:00:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079482#M61034</guid>
      <dc:creator>Hamilton_Tenório_da_</dc:creator>
      <dc:date>2016-04-07T19:00:11Z</dc:date>
    </item>
    <item>
      <title>I recommend that you add add</title>
      <link>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079483#M61035</link>
      <description>&lt;P&gt;I recommend that you add add an * (asterisk) to the network request field and &lt;A href="http://*" target="_blank"&gt;http://*&lt;/A&gt; in the intent field on the projects panel. These configuration settings are visible for Cordova projects under the Build settings sections for the desired mobile platform. After you have successfully tested your project, the appropriate domain name (http://my-server.com) to the intent field. If your have more domain names, add them to the field separated by commas.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 21:46:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/xhttp-status-returning-0-on-Android/m-p/1079483#M61035</guid>
      <dc:creator>Elroy_A_Intel</dc:creator>
      <dc:date>2016-04-07T21:46:07Z</dc:date>
    </item>
  </channel>
</rss>

