Solved

Using CODEBASE tag for auto download of CAB file

Posted on 1997-12-09
3
1,298 Views
Last Modified: 2006-11-17
One on our products requires ActiveX controls to be installed on the users machine (I believe in fm20.dll).  We want to be able to point our users to our external Web Site and allow then to download and install the mspert10.cab file which contains these controls.

I believe this can be done via an HTML page using the CODEBASE tag, but that's where my knowledge ends.

Can you help me (and provide examples on how this is done).

Is the CODEBASE tag just an IE thing or does it work if the user connects using Netscape.

Any links to more info would also be useful (I have trawled the MS web site already).

Many thanks

Martin
0
Comment
Question by:martinbw
3 Comments
 
LVL 6

Expert Comment

by:tecbuilder
ID: 1842203
I don't know what the codebase tag is.  I haven't heard of it and it is not an HTML 3.2 tag.  So I'll tell you another way to get the result in which I believe you are looking for.

Since all you are wanting is to have the user download the cab file and install it where ever it is supposed to go then just use the anchor tag and reference the cab file.  Something like the code below should work.

<a href="http://your.external.website.com/mspert10.cab">Click On Me To Download The Cab File</a>

Since the browser doesn't know what to do with a cab extension it will ask the user to either Open It or Save It.  You may want to include some instructions on how to download and where to save the file to just before the anchor tag.  That way they will read what they are supposed to do before downloading.

I did try this with MSIE and Netscape and both asked me if I wanted to download the cab file and where I wanted to save it to.

Here is a good place to go for HTML tag information.  http://www.htmlhelp.com/reference/wilbur/
0
 

Author Comment

by:martinbw
ID: 1842204
I would like to use the CODEBASE tag, so this does not answer my question.  Many thanks for your response though.
0
 
LVL 1

Accepted Solution

by:
moshem earned 120 total points
ID: 1842205
CODEBASE is understood by Netscape too , but netscape
won't support OCX (ActiveX) so nevermind...

sample :

<OBJECT ID="AgentControl" WIDTH=0 HEIGHT=0
     CLASSID="CLSID:F5BE8BD2-7DE6-11D0-91FE-00C04FD701A5"
     CODEBASE="http://proj/agent/msagent.exe">
    </OBJECT>

Moshe
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article discusses four methods for overlaying images in a container on a web page
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…

757 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

21 Experts available now in Live!

Get 1:1 Help Now