Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton, UK
    Posts
    282
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Unhappy combining javascript with VB.. ??? can I

    I am wondering if I can then call my javascript from the VB code.. i AM NOT TO SURE iF i AM IN THE RIGHT FORUM... BUT HERE IS THE CODE i AM TRYING.........

    <html>

    <head>
    <script type="text/javascript" language="JavaScript">
    function pleaseyes() {
    alert("yes");
    }
    </script>
    <script type="text/javascript" language="JavaScript">
    function pleasenono() {
    alert("no");
    }
    </script>
    <script language="VBscript">
    Sub entrance_onClick
    returnvalue=MsgBox ("You are about a DHTML intensive site. Proceed?",52,"Greetings!")
    If returnvalue=6 Then
    window.location="pleaseyes()"
    Else
    window.location="pleaseno()"
    End If
    End Sub
    </script>
    </head>
    <body>
    <form>
    <input type="button" name="entrance" value="Click here">
    </form>
    </body>

    </html>

    aNY IDEAS
    <marquee>thanks</marquee>

  • #2
    New Coder
    Join Date
    Aug 2002
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    does window.location work in VBScript?
    This was another dumb post by: ShdwStal

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    near Oswestry
    Posts
    4,508
    Thanks
    0
    Thanked 0 Times in 0 Posts
    you can do something like this

    <a href="#" language="VBScript" onclick="CallMyVBFunction()">click</a>

    <a href="#" language="JavaScript" onclick="callMyJSFunction()">click</a>

  • #4
    Regular Coder
    Join Date
    Jul 2002
    Location
    Brighton, UK
    Posts
    282
    Thanks
    1
    Thanked 0 Times in 0 Posts

    thanks

    works well
    <marquee>thanks</marquee>


  •  

    Posting Permissions

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