title: Why is responseText returning blank?
body: <p>I have a database table whose fields contain latitude and longitude coordinates of positions.  I want to create markers for a Google Map view using the information from the database.</p>
  
  <p>I've implmented the query function as </p>
  
  <pre><code>function getCords(){
    $link = connectDB();
    $query = "SELECT * FROM tour";
    $results = mysqli_query($link, $query);
  
    $jsonArray = array();
    while ($row = mysqli_fetch_assoc($results)){
      $jsonArray[] = array('fileName' =&gt; $row['FileName'], 'lat' =&gt; $row['Lat'], 'lon' =&gt; $row['Lon']);
  
    }
  
  return json_encode($jsonArray);
  }
  </code></pre>
  
  <p>When I call this function from a php page, it returns the usual JSON format.</p>
  
  <p>My issue is executing an ajax query.  I have the query function above in a php scripts file containing six or so utility functions controlling login, logout, registration and the like.  To query the database via jquery, I tried </p>
  
  <pre><code>var request = $.ajax({
    type:"GET",
    url: "includes/phpscripts.php?action=cords",
    type: "json"
  });
  
  var response = request.responseText;
  </code></pre>
  
  <p>My problem is the response is always empty.  Is this due to the formation of the URL or for some other reason?</p>