> >>VK said the following on 10/26/2005 5:56 PM:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
"http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<script type="text/vbscript">
Dim MyVar
MyVar = MsgBox ("Hello World!", 216, "MsgBox Example")
' MyVar contains either 1 or 2, depending on which button is clicked.
</script>
</head>
<body>
<P>This is the body of the document</P>
<noscript>
<P>You have scripting disabled</P>
</noscript>
</body>
</html>
I did not get that I guess. On both Opera 8.01 and FireFox 1.0.7 it
ignores VBScript and shows "This is the body of the document" line only
in the body. What's wrong with that?
Randy Webb wrote:
It does not support the script. So, in theory, it should show the
noscript element but it doesn't.
But it does support *the* script! Try <body onload="alert('I support
scripting')">
It simply ignores fragment of unknown Content-Type "text/vbscript"
which seems right to me (?)
If VBScript was a part of common Web standards we would expect 3
separate tags from W3C like:
<NOJSSCRIPT>
<NOVBSCRIPT>
<NOANYSCRIPT>
Otherwise single <NOSCRIPT> is sufficient (?)
If anyone puts her nose out of the ASP box to the client-side, it's her
duty to provide a roll-back for standard browser users.
<script type="text/vbscript">
// Code
</script>
<script type="text/javascript">
// Warning message if VBScript
// was not executed
</script>
P.S. Ave we advocation VBScript ? ;-)