Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3796858
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:18:29+00:00 2026-05-19T13:18:29+00:00

I have a page that needs to be able to invoke the installation of

  • 0

I have a page that needs to be able to invoke the installation of an ActiveX control through JavaScript. I have tried a few DOM-centric methods, but have not been able to get anywhere. If the ActiveX is already installed, I can get it to load, but I can’t seem to get the CAB to install. Using straight HTML, the installation works, yellow bar and all.

This is the code that is able to load the ActiveX. It uses jQuery 1.4.2. host is a reference to a visible div element on the page. result is true if the ActiveX is loaded, false otherwise (I don’t know if it works on all ActiveX controls, but it works for the one my company has developed).

var attributes = {
    id: "ax",
    classid: "clsid:" + drv.clsid,
    codebase: install ? drv.cab : undefined,
    width: 0,
    height: 0
};

try {
    axSelector = $("<object></object>", attributes);
    host.append(axSelector);
} catch (e) {
    return false;
}

ax = axSelector[0];

var result = ax && ax["Enabled"] !== undefined && ax["Enabled"] !== null;

axSelector.remove();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T13:18:29+00:00Added an answer on May 19, 2026 at 1:18 pm

    I got this working by refactoring my code so that I could embed the object tag into the page on the server side during a postback (ASP.NET). Not exactly the solution I was hoping for, but it works.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a view using a master page that contains some javascript that needs
I have a page in my vb.net web application that needs to toss a
I have a particular PHP page that, for various reasons, needs to save ~200
I have a page that needs to combine data from four different webrequests into
I have an application with a launch page that needs to determine what is
I have an ATL ActiveX control that raises three events (Connected, Authenticated, Disconnected) which
We have some legacy code that needs to identify in the Page_Load which event
I have an ASP.NET web page that displays a variety of fields that need
I have any number of anchor links on a page that need to execute
I have a simple web page that till now didn't need any login. It

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.