Advertisement
Guest User

Untitled

a guest
May 28th, 2013
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.ajax({
  2.         type : 'POST',
  3.         url : API_URL,
  4.         processData : false,
  5.         contentType : false,
  6.         data : {
  7.                 username : $('#login_username').val(),
  8.                 password : $('#login_password').val()
  9.         },
  10.         error : function(xhr, error_type, error){
  11.                 console.log('ERROR ('+error_type+'): '+error);
  12.         },
  13.         success : function(data, status, xhr){
  14.                 console.log('SUCCESS ('+status+'): <BEGIN RESPONSE>'+message+'<END RESPONSE>');
  15.         }
  16. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement