PDA

Click to See Complete Forum and Search --> : Pass values from web page to ocx


indianitguru
Apr 4th, 2005, 08:05 AM
Hi
I have made a ocx for multiple browser which searches a db and gets the sites to be displayed in the various tabs. This needs login id to get started. I have the login id in the web page. I need to know how to pass the variable Login id to the ocx.
Thanks

Dave Sell
Apr 4th, 2005, 02:51 PM
Post your .HTML

Loial
May 3rd, 2005, 09:32 AM
Here is an example of passing parameters. You need to create SetNet8Service etc as public functions in your VB code. Hope this helps

<HTML>
<HEAD>
<TITLE>prjopdirector.CAB</TITLE>
<script>
function send_value(form){
document.all('DirectorV4').SetNet8Service("FW01");
document.all('DirectorV4').SetOracleUser("OPD4566SYSTEST");
document.all('DirectorV4').SetOraclePassword("opd4566systest");
document.all('DirectorV4').ShowForm(form);
}
</script>
</HEAD>
<BODY>
<button type="button" name="logon" onclick="send_value('Logon')">Logon
</button>
<button type="button" name="logon" onclick="send_value('Customers')">Customers
</button>
<button type="button" name="logon" onclick="send_value('Departments')">Departments
</button>
<button type="button" name="logon" onclick="send_value('JOBP')">Job Processing
</button>
<OBJECT ID="DirectorV4"
CLASSID="CLSID:26C45427-9DEE-4922-A0A2-82EADF468B09"
CODEBASE="prjopdirector.CAB#version=4,566,0,8">
</OBJECT>
</BODY>
</HTML>