Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extract 2 variables from input in html page to VB

Status
Not open for further replies.

lmcate2929

Technical User
Oct 27, 2009
4
US
How do I Extract 2 variables in html with Input statement into to VB
 
Here is the HTML - that I received..... I want to extract the 2 variables data into Vb


<html>
<head>
<title>QM Push</title>
<script language=javascript>
var objShell = new ActiveXObject("WScript.Shell");
function run(){

RESULT.innerHTML='<FONT Color=Green>Sending data to CallTrak window...</FONT>';
objShell.AppActivate("CallTrak");
window.setTimeout("javascript: objShell.SendKeys(\'"+txtID.value+"\');", 200);
window.setTimeout("javascript: objShell.SendKeys(\'{TAB}"+txtVIT.value+"\');", 200);
window.setTimeout("javascript: objShell.SendKeys(\'{TAB}~\');", 200);
window.clipboardData.setData('Text',txtID.value);
RESULT.innerHTML='<FONT Color=Red>Sent data to CallTrak window (QM ID `'+txtID.value+'` has been copied to the clipboard)...</FONT>';
}
</script>
</head>
<body>
<h2>Push To CallTrak Example</h2>
<p><b>QM ID:</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input id=txtID name=txtID tabIndex=1 value='Test QM ID'><br>
<b>VIT Code:</b> <input id=txtVIT name=txtVIT tabIndex=2 value='Test VIT Code'>
</p>
<input type="button" value="Push Data" style="CURSOR: hand" onclick="run();" ID=Button1>&nbsp;<label id="RESULT"></label>
</body>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top