I am attempting to set the source of an image. The image shows up correctly in IE and Firefox, but it doesn't show in Chrome. The error message that shows up in the console is: "Resource interpreted as image but transferred with MIME type text/html."
ColdFusion.Window.show('loading');
image = <cfoutput>#randrange(1,numImages)#</cfoutput>;
document.getElementById("loadImg").src = "./images/loading" + image + ".gif";
setTimeout('document.images["loadImg"].src = "./images/loading" + image + ".gif"', 100);
I imagine I have to change the MIME type, but I have no idea how to go about doing this. What do I have to change for this to work in Chrome?