Results 1 to 3 of 3

Thread: Pass values from web page to ocx

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    1

    Unhappy Pass values from web page to ocx

    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

  2. #2
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: Pass values from web page to ocx

    Post your .HTML
    Nobody knows what software they want until after you've delivered what they originally asked for.

    Don't solve problems which don't exist.

    "If I had eight hours to cut down a tree, I'd spend six hours sharpening my axe." --- Abraham Lincoln (1809-1865)

    2 idiots don't make a genius.

  3. #3
    New Member
    Join Date
    Apr 2005
    Posts
    3

    Re: Pass values from web page to ocx

    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>
    www.loial.co.uk

Posting Permissions

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



Click Here to Expand Forum to Full Width