I have a web app I am working on:
$("#post").click(function () {
var u = $('#u').val();
var j = $('#j').val();
$.post("http://www.myweb.php", {
u: u,
j: j
})
.done(function (data) {
var obj = jQuery.parseJSON(data);
alert(obj.status );
//alert("Data Loaded: " + data);
});
});
When it tries to retrieve the JSON I get:
Uncaught SyntaxError: Unexpected token o