Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type : 'POST',
- url : API_URL,
- processData : false,
- contentType : false,
- data : {
- username : $('#login_username').val(),
- password : $('#login_password').val()
- },
- error : function(xhr, error_type, error){
- console.log('ERROR ('+error_type+'): '+error);
- },
- success : function(data, status, xhr){
- console.log('SUCCESS ('+status+'): <BEGIN RESPONSE>'+message+'<END RESPONSE>');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement