CheatSheet | HTML

ajax HTTP request

<script>
  $.ajax({url: "http://cgpu018-cvision:20012/vidcls?title="+searchTitle,
          method : "GET",
          datatype : "JSON"})
  .done(function(data) { alert('Done');}) 
  .fail(function(xhr, status, error){alert('Failed');});
  });
</script>