I would like to create a web page within a check list. For each MIME type this page will show "OK" is that MIME type is supported by the browser, otherwise "Warning".
Is this possible?
Thanks,
Fair
You would be able to build a web page that does that... but it would have to display information you have already gathered in previous tests. I know of no way to perform such tests locally within the browser.
This time ff/nn has an edge. Msie has not implement (yet?) mimeTypes collection for (political) reasons? This works for ff/nn. In ie no runtime error as doc said for compatible reason, only it returns nothing.
[tt]
<html>
<head>
<script language="javascript">
function checkit() {
var cmimetypes=window.navigator.mimeTypes;
alert("mimeTypes collection length : " + cmimetypes.length);
var info="";
for (var i=0;i<cmimetypes.length;i++) {
info+="["+i+"] "+cmimetypes.type+"\n";
if ((i%25)==24) {
alert(info);
info="";
}
}
}
window.onload=checkit;
</script>
</head>
</html>
[/tt]
Different browser may report slightly different results.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.