Feedback on: irt.org FAQ Knowledge Base Q1284
Worth:
Very worth reading
Comments:
There is a typo in the script, I believe: toLowercase() instead of toLowerCase() (with the lower "c" the script didn't function)
Another error might be, that the mimeType should be tested for
indexOf('shockwave') not indexOf('quicktime'), am I right?
Here is the compelte script:
<html>
<head>
<title>test</title>
</head>
<body bgcolor="#ffffff">
<img name="testMime" src="test.swf">
<script language="JavaScript">
</script>
</body>
</html>
Comments:
if (document.all && document.testMime.mimeType.toLowercase().indexOf('quicktime') !=-1)
should be
if (document.all && document.testMime.mimeType.toLowercase().indexOf(mimetype) !=-1)
Worth:
Very worth reading
Comments:
But typo: quicktime s/b flash