This ajax request checks if a TIF file exists in a certain directory and either sets a button to open the file or to display an error message if it isn't there.
$.ajax(
{
cache: false,
url: directory,
success: function() { $("#img" + row).click(function() { window.location.href = directory; return false; }) },
error: function(data) { alert(data.responseText); $("#img" + row).click(function() { $("#ImageDialog").dialog("open"); return false; }) }
});
Sometimes, but not always, IE8 will return a failure even when the file exists and FF and Chrome return successes. I added the "alert(data.responseText)" trying to debug the problem, but I do not ever get the alert box. IE instead fails throwing a "System error: -1072896748".
What is going on?