Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ajaxcall

//ajaxcall function 
var $ajaxCall = function (data, url, success, error) {
  $.ajax({
    type: "POST",
    async: true,
    url: url,
    data: data,
    success: success,
    error: error
  });
};

//usecase
$ajaxCall({ data: data }, "/pass/url/here", function (response) {}, function (error) {});
 
PREVIOUS NEXT
Tagged: #ajaxcall
ADD COMMENT
Topic
Name
5+5 =