title: Can't Post using AJAX in Intel XDK
body: <p>I've included the required files:</p>
  
  
  
  
  
  <p>But can't seem to get my ajax post to submit. It seems like the event is being stopped before the post. I am developing an application using IntelXDK and there isn't a lot of details on line how to make AJAX post work... Not sure what I'm missing. Any ideas?</p>
  
  <p>My ajax:</p>
  
  <pre><code>$.ajax({
      url : 'http://xx.xxx.xx.x/check_access.php',
      type: 'POST',
      data : {'thisusername':thisusername, 'thispassword':thispassword},
      dataType: 'Text',
      success: function(data, textStatus, jqXHR)
      {  
  
          if(data==1){
                    localStorage.setItem("username2", thisusername);
                    location.assign("./community-home.html");
          } else {
                 function funcError1() {
                      var iframe5 = document.createElement("IFRAME");
                      iframe5.setAttribute("src", 'data:text/plain,');
                      document.documentElement.appendChild(iframe5);
                      window.frames[0].window.alert('Username or Password does not exist.');
                      iframe5.parentNode.removeChild(iframe5);
                  }
                  funcError1();
          }
      },
      error: function(){
              //$("#user-result").html("Username available!");
              function funcError() {
                  var iframe4 = document.createElement("IFRAME");
                  iframe4.setAttribute("src", 'data:text/plain,');
                  document.documentElement.appendChild(iframe4);
                  window.frames[0].window.alert('Something went wrong. Close the application and try again');
                  iframe4.parentNode.removeChild(iframe4);
              }
              funcError();
  
              console.log('There was an error');
      }
  
  });
  return false;
  }
  </code></pre>