[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


calling activeForm function in html or javascript

Posted on 2009-12-18
Medium Priority
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
  • 3
LVL 25

Expert Comment

ID: 26082280
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

ID: 26082804
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

ID: 26082857
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

epasquier earned 2000 total points
ID: 26082887

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
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…
Suggested Courses
Course of the Month18 days, 22 hours left to enroll

834 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