Solved

ActiveX Documents

Posted on 1998-07-06
3
210 Views
Last Modified: 2013-11-18
I just make a test project for Project1.vbd I works on my computer  through Internet explorer but It doesn't work from other computer which don't have vb5.??
0
Comment
Question by:raza
  • 2
3 Comments
 
LVL 1

Accepted Solution

by:
Jason_G earned 0 total points
ID: 1465075
Hi Raza,
The reason for this is that the computers that don't have VB 5.0 will most likely not have the components you need, nor will these components be registered.  To do this read below;

Deploying an ActiveX Document in Internet Explorer

You link to ActiveX documents from an HTML page with a combination of HMTL and VBScript. In the following example, an ActiveX document is reached from a hyperlink on an HTML page.
·      Use HTML to provide a link to the HTML page referencing the ActiveX document.
Since the ActiveX document will replace the HTML page in Internet Explorer, it's necessary to place the component's OBJECT tag on a separate HTML page, then jump to that page — which will promptly disappear when the ActiveX document has been loaded.
The following HTML code creates a hyperlink from the first page to the second (the one that downloads the ActiveX document):
<a href="Accounts.htm">View or update accounts</a>
      
·      Use HTML to provide a means for the browser to download, register, and navigate to the ActiveX document.
The following HTML fragment instructs Internet Explorer to download the ActiveX component and register the ActiveX document in the Windows registry:
<OBJECT
      classid="clsid:2F390484-1C7D-11D0-8908-00A0C90395F4"
      codebase="Accounts.cab#version=1,0,0,0">
</OBJECT>
      
The OBJECT tag in this example includes:
·      The ActiveX document's class ID so that it can be included or found in the Windows registry.
·      A CODEBASE attribute to tell the browser where to find the component if it's not already on the client machine (and a version number to check against for updating).
·      On the same page, place VBScript that instructs Internet Explorer to navigate immediately to the ActiveX document through its .vbd file (this file was created when the ActiveX document was compiled, and contains a pointer to the component providing the ActiveX document's objects).
<SCRIPT LANGUAGE="VBScript">
Sub Window_OnLoad
      Document.Open
      Document.Write "<FRAMESET>"
      Document.Write "<FRAME SRC=""Accounts.vbd"">"
      Document.Write "</FRAMESET>"
      Document.Close
End Sub
</SCRIPT>
      
This code fragment contains only the name of the .vbd file is given, rather than a fully-qualified path.

I hope this helps.

Sincerely,
Jason

Jason Gorman (jason_gorman@scholars.com)
Learning Advisor, scholars.com
Microsoft Authorized Technical Education Center
Novell Authorized Online Training Provider
http://scholars.com
0
 

Author Comment

by:raza
ID: 1465076
Thanks alot for help

I am wondering where I can get all ActiveX component for registering the ActiveX document in the Windows registry: as you explan below

<OBJECT
    classid="clsid:2F390484-1C7D-11D0-8908-00A0C90395F4"
    codebase="Accounts.cab#version=1,0,0,0">
</OBJECT>
0
 

Author Comment

by:raza
ID: 1465077
Thanks alot for help

I am wondering where I can get all ActiveX component for registering the ActiveX document in the Windows registry: as you explan below

<OBJECT
    classid="clsid:2F390484-1C7D-11D0-8908-00A0C90395F4"
    codebase="Accounts.cab#version=1,0,0,0">
</OBJECT>
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

In this article you will learn how to create a free basic website on Bitbucket, a git service provider. Polymer creates dynamic HTML components, which allow more flexibility than static HTML. This tutorial uses Ubuntu Linux but can also be done on W…
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…

747 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

8 Experts available now in Live!

Get 1:1 Help Now