Results 1 to 2 of 2

Thread: vb

  1. #1
    Join Date
    Dec 2005
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb vb

    Hi
    do u know u can put a visual basic code in a web page?






    visual basic and javascript are MUUUUUUUUUUUUUUUUUUUUUUUU UUUUUUUUUUUUUUUUUUUUUUUCH different!



    Javascript:
    function msg()
    {
    alert("hi im tintinfreak")
    }
    Visual Basic:
    Sub msg()
    MsgBox "hi im tintinfreak", vbExclamation + vbOKOnly
    End Sub
    -------------------------------------------------------------

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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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 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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •