I'm newbie with JQuery.
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") in the PHP script.
I'm using firefox 3.6 on OS X.