HTML | Snippet


HTTP request using ajax

<script>
  $.ajax({url: "<HOST_URL>",
          method : "GET",
          datatype : "JSON"})
  .done(function(data) { alert('Done');}) 
  .fail(function(xhr, status, error){alert('Failed');});
  });
</script>