Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,672 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,188 people online right now. Registration is fast and FREE... Join Now!




Execute VBScript in HTML?

 
Reply to this topicStart new topic

Execute VBScript in HTML?

bstonehill
post 17 Sep, 2008 - 10:06 AM
Post #1


D.I.C Head

Group Icon
Joined: 21 Jan, 2008
Posts: 50



Thanked 1 times
My Contributions


Okay, I've read and read and tried everything I can think of but I still cannot get this to work. I need to execute VBScript from a javascript function. I've read that javascript and VBScript cannot talk to each other and found a workaround to have the VBScript execute with the onChange event in a hidden text field and then change the value of that field with javascript. I cannot get that to work though and have thus far not been able to find any other workarounds. Please help!

CODE

<script type='text/javascript'>
    function CreateX()
{

  try{
      //document.WebCamX1.CreateX();
      if(IpAddress == 0)
      {
        document.WebCamX1.IpAddress= document.location;      
      }
      else
      {
        document.WebCamX1.IpAddress= IpAddress;
      }
    document.WebCamX1.CommandPort = CommandPort;
        document.WebCamX1.DataPort = DataPort;
        document.WebCamX1.AudioDataPort = AudioPort;
        document.WebCamX1.AutoSetCamera = 1;
      
        document.WebCamX1.SetInfo(125,1,0,"","");
        document.WebCamX1.SetInfo(129,1,0,"","");        
        document.WebCamX1.SetUpdateInfo(100, "WebCam", 0, "", 8200, 0,0);
         LivexExist=true;
    
   }catch(e){
    //alert("Test");
  document.form1.VBExec.value = "1";
  LivexExist=false;
   }

}
</script>

<script for="VBExec" event="onChange" Language="VBScript">
  MsgBox "Test"
</script>
</head>

<body>
<form name="form1" method="POST">
<input type="hidden" id="IDKey" name="IDKey" value="IDENTIFY_KEY" />
<input type="hidden" id="VBExec" name="VBExec" value="0" />
</form>


This post has been edited by bstonehill: 17 Sep, 2008 - 10:08 AM
User is offlineProfile CardPM

Go to the top of the page

Hurshai
post 2 Oct, 2008 - 12:17 AM
Post #2


New D.I.C Head

*
Joined: 14 Sep, 2008
Posts: 8



Thanked 2 times
My Contributions


I don't have a whole lot of experience with VBScript but shouldn't it be used in conjunction with ASP?
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 06:05AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month