Mohammed Atef’s Technical blog

Activate ActiveX control using Javascript

Introduction

          Today I am going to talk about common issue most of developer faces when they are trying to use an ActiveX control in his web page, and they want user to use the control without click it twice.

Problem

                When web developer use an ActiveX control in his web page, users of this web page should click twice on the ActiveX control first click to activate the ActiveX control and second time to use the control.

Solution

                Solving the above issue is very simple just follow the below steps:

  1.  Download and Add this Javascript file to your web application
  2.  Add the following line before the end body tag in your web</body>
    <script type=”text/javascript” src=”virtual path of added JS file in step1″/>

Note, I have read many articles for fixing this problem but most of them not working and need to write Javascript codes but this article only was working, so I have wrote this post to give you the best solution I have found after long time of search.

I hope That Helped.

January 20, 2011 Posted by | Asp.net | , , | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.