Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

jquery post with promises

function ajax(options) {
  return new Promise(function (resolve, reject) {
    $.ajax(options).done(resolve).fail(reject);
  });
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #post #promises
ADD COMMENT
Topic
Name
5+8 =