Hi all.I'm using a script within my ftl file and when the url is ok all works fine, but when the page response is 403 I can't show the alert message insede the if.This is the code:
$.get(url, function(data,status){
if (status.code=="403"){
alert ("Something is wrong");
}
ticket = data.toString().substring(48,95);
window.location.href = "${url.serviceContext}/showContent?name=${docName};
},'html'
);
What is the mistake??Tanks in advance!!