OyvindLE
3/3/2015 - 8:57 AM

jQuery Ajax

jQuery Ajax

$.ajax({
  type: 'POST',
  url: '/services/service.asmx/ServiceMethod',
  data: "q="+myform.serialize(),
  success: function(data){
    // on success use return data here
  },
  error: function(xhr, type, exception) { 
    // if ajax fails display error alert
    alert("ajax error response type "+type);
  }
});