Quantcast
Channel: VBForums - ASP, VB Script
Viewing all articles
Browse latest Browse all 688

How to embed VBSCRIPT inside HTML

$
0
0
I have a working VBScript that launches/open calendar invite with prepopulated recipient. I need to add a dropdown list for users to pick a selection, prepopulated recipient would be filled based on their selection.
When I run the html file it only executes the HTML code but never got into the VBScript code.
Also I am interested to do the dropdown in VBScript without the html. Any guidance or direction greatly appreciated.

Here is what I am trying to do:
Code:


       
Code:

       
<html>
<head>
<HTA:APPLICATION ID="2014-03"
   applicationName="2014-03"
   version="1.1"
    BORDER="thin"
    BORDERSTYLE="static"
    CAPTION="Yes"
    CONTEXTMENU="no"
    ICON="C:\icon\32x32.ico"
    INNERBORDER="no"
    MAXIMIZEBUTTON="no"
    MINIMIZEBUTTON="no"
    NAVIGATABLE="no"
    SCROLL="no"
    SCROLLFLAT="no"
    SELECTION="no"
    SHOWINTASKBAR="yes"
    SINGLEINSTANCE="yes"
    SYSMENU="yes"
    WINDOWSTATE="normal"
>

<SCRIPT LANGUAGE="VBScript">

    Sub WindowsLoad()

    Select Case inp01

    Case "1"
        msgBox "Option 1 Selected!"
'do something here
    End Sub

  
</SCRIPT>
</head>

<body>


<select id=extension size="1" name="OptionChooser" onChange="TestSub">
    <option value="0">Select Option</option>
    <option value="1">One</option>
    <option value="2">Two</option>
    <option value="3">Three</option>
    <option value="4">Four</option>
</select>



<input Type = "Button" Value = "Launch Meeting Invite" Name = "Run_Button" onClick = "WindowsLoad"><p></td>

</body>

</html>


Viewing all articles
Browse latest Browse all 688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>