Simple ajax request by jquery


Posted on 2015-01-08 12:00:30


AJAX stands for Asynchronous Javascript And XML used to make asynchronous request from your website to service. This is an example create and handle response ajax request.
<script>

$.ajax({ type:'POST', dataType:'json', url: accessurl, data:{ param_1: value_1, param_1: value_2 }, cache:false, success: function(data){ //process response data here }, error: function(XMLHttpRequest, textStatus, errorThrown){

//process error here

}); } });

</script>