calling activeForm function in html or javascript

Posted on 2009-12-18
Last Modified: 2013-11-23
Im creating and activeForm which runs inside an activeX container on an html page [PAGEID.htm]

I need to pass the activeForm the PAGEID, as well as the cookie filename so i can work with the file inside the activeForm.

What do i need to do in order to call function activeForm.INIT(pageId ,CookieName)
anything that works is welcome ! (ie javascript.. if need be)

Also, how do i expose the function within the activeForm to the outside world.

<html dir="rtl">
<meta http-equiv="Content-Type" content="text/html">
<p dir="ltr" >
<object classid="clsid:175ACF4C-9D1F-4195-A54F-61CA2F422CEF"  id="MYACTIVEX" width="800" height="600">
      <param name="Enabled" value="-1">
Question by:controlr
    LVL 25

    Expert Comment

    You will have to create an OLE interface / wrapper for this function
    Open the type library and add a new method for your existing interface of your ActiveX

    Author Comment

    So i just create an IInterface and create a function ?  im very new to interfaces.
    A quick example would be nice including the decleration/usage in the typelib and the calling from the HTML
    also links to examples would be OK.. didnt see anything in my googling..

    LVL 25

    Expert Comment

    check this, it's almost the same question.

    I provided there a link to download a test activeX with a function that can be called from anywhere.
    If I remember correctly, there is also an application that calls this activeX to get the result of the function.
    I just don't know the exact syntax to call it from an HTML page, so come back when you have understood all this already and made the modifications on your own activeX
    LVL 25

    Accepted Solution


    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Suggested Solutions

    Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
    Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
    In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    25 Experts available now in Live!

    Get 1:1 Help Now