Skip to content

Instantly share code, notes, and snippets.

@jhonsore
Last active September 12, 2016 13:32
Show Gist options
  • Select an option

  • Save jhonsore/5a0623e06f602125febe to your computer and use it in GitHub Desktop.

Select an option

Save jhonsore/5a0623e06f602125febe to your computer and use it in GitHub Desktop.
Jquery ajax
$.ajax({
type:"POST",
beforeSend: function (request)
{
request.setRequestHeader(API_NAME,X_API_KEY);
},
url:URL,
processData: false,
dataType : "json",
data: "key=value&key=value",
success : function(data){
},
error : function (XMLHttpRequest, textStatus, errorThrown)
{
},
complete: function ()
{
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment