Hi, I'm trying to post with JQuery like this:
$.post("NiceController/Create/", { field1: data1, field2: data2 },
function(data, textStatus) {
if (data.Status)
//Do something
}, "json");
The problem is, that when I'm not authenticated I don't get redirected, to log-on page, because it's not a full form submit. Question is: How do I, programmatically, know that I'm not authenticated and should redirect to log-on page?