Cannot get xmlhttprequest.responseText from JQuery
- by Felix Guerrero
Hi.
I got this function
function verify_at_bd(){
var u = "foo";
var p = "bar";
return $.post('auth.php', { name: u, password: p, mobile: '' },
function(result){
return result;
},'json');
}
If I do a console.log(verify_at_bd()) I'm getting an xmlhttprequest but cannot access to responseText property. I'm using header("Content-Type: application/json") into my PHP.
I'm using firefox 3.6 on OS X.