PDA

View Full Version : vb



tintinfreak
05-14-2006, 02:30 PM
Hi
do u know u can put a visual basic code in a web page?






visual basic and javascript are MUUUUUUUUUUUUUUUUUUUUUUUU:eek: UUUUUUUUUUUUUUUUUUUUUUUCH different!



Javascript:


function msg()
{
alert("hi im tintinfreak")
}


Visual Basic:


Sub msg()
MsgBox "hi im tintinfreak", vbExclamation + vbOKOnly
End Sub


-------------------------------------------------------------



<script language=vbscript>
Sub msg()
MsgBox "hi im tintinfreak", vbExclamation + vbOKOnly
End Sub
</script>
<script language=javascript>
function msg()
{
alert("hi im tintinfreak")
}
</script>

Twey
05-14-2006, 02:58 PM
Hi
do u know u can put a visual basic code in a web page?
Acutally, that would be VBScript, not Visual Basic. There are differences.
visual basic and javascript are MUUUUUUUUUUUUUUUUUUUUUUUU:eek: UUUUUUUUUUUUUUUUUUUUUUUCH different!Two different languages with absolutely nothing in common, one a free and open language supported by almost all browsers and the other a proprietary language supported only in IE? Not the same? You don't say!

I think everybody here knows it's possible to embed VBScript into a webpage. I think everybody also knows that it would be a really daft idea to do so, since only Internet Explorer would parse it.

Besides, VBScript is a horrible language.