I have a web application that I had to pull the Apache server out of. Once I did, the code below stopped working (doesn't seem to care about the url). Hoping that someone can help me find an alternative way to see if folder S100-122-23 does not exist, then implement the error code.
function checkFLMLinks()
{
$.ajax({
type: 'HEAD',
url: '../../S100-122-23',
error: function(){
$("a").each(function(){
if($(this).attr("href") && ($(this).attr("href").indexOf("/AWE-S100-23") > -1))
{
$(this)
.removeAttr("href")
.attr("title", "Manual Not Loaded")
.addClass('noxref')
.removeClass('xref');
window.alert("flmlinks");
}
});
}
});
}