this.encryptUserObject = function(userObj){
var newpassword = [];
var urlPost = '';
console.log(password);
urlPost = 'http:mysite.com/root/custome.svc/Encrypts'+ '/?' + "Phrase=test";
$.ajax({
url:urlPost,
type:"GET",
dataType:"json",
contentType: "application/json",
success: function(response){
return response;
},
error:function(res){
console.log("Bad thing happend! " + res.statusText);
}
});
}
This is one of method in my class. cosole.log
in success
method is working, showing result (new password in encryption text), but the newpassword
print in console $.ajax
no value.
Any idea what could be causing this.