Results 1 to 3 of 3

Thread: ActiveX Control -> HTML/VBScript

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Posts
    5

    Exclamation

    Is it possible for my ActiveX Control loaded on a webpage, to call the VBScript functions and subs defined on that page?
    And if, then how do I call them from the ActiveX?

    I have tried with calling through the Parent object, but it won't let me access my own subs and functions on the webpage.


    Hope anyone can help...
    - ManCap

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    use the MS activex control pad for this ...
    http://hotfiles.zdnet.com/cgi-bin/te...es/search.html (then type in control pad)

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  3. #3
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    You can do this through events on the ActiveX object. Remember though, that the ActiveX control is running on the Client side, not the Server. You can access Client side scripts and functions but not server side.

    If you use the Script Outline in Interdev, once you have added the ActiveX control to the page using the <OBJECT> tag and given it a name with the name attribute, it will
    show up in the script outline and you can easily add events for the ActiveX control. Within these events you can call other client side scripts on the page.

    Hope this helps
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

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