473,405 Members | 2,404 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

test ActiveX controls

Hi,
i must determine if client's browsers support ActiveX controls.
Is it possible to obtain this information using Javascript?
Thank's a lot.
Stefano
Jul 23 '05 #1
1 5558
"stegada" <st***************@inwind.it> wrote in message
news:70**************************@posting.google.c om...
Hi,
i must determine if client's browsers support ActiveX controls.
Is it possible to obtain this information using Javascript?
Thank's a lot.


It's pretty simple:

<object
id="myActiveXControl"
classid="CLSID:CA8A9780-280D-11CF-A24D-444553540000"
width="80"
height="30">
<param name="src" value="test.pdf">
</object>
<script type="text/javascript">
window.onload = function()
{
var ax = document.getElementById('myActiveXControl');
if (ax && ax.src)
{
alert('browser appears to have loaded your ActiveX control');
}
else
{
alert('browser appears to not have loaded your ActiveX
control');
}
}
</script>

Put the ActiveX control in your page, then retrieve it and test a
well-known exported property or method unique to your ActiveX control.

If the property or method returns what it is supposed to return, the
ActiveX control loaded and is scriptable.

You could also test by creating a new ActiveX control using "new
ActiveXObject(...);", assuming you know the user agent you're using
actually supports "new ActiveXObject(...);".

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Fie Fie Niles | last post by:
This one XP machine (with IE 6) is having a problem viewing any ActiveX controls (created on VB6) on the Internet Explorer browser. I put the same ActiveX control in a VB program, and when I run...
1
by: SmartGuy | last post by:
hi,all: The whole thing is : My team is developing some activex controls in VB 6.0. As a new comer, i am quite familiar with .Net(c#) than vb 6.0. So can i develop ActiveX controls in c#? And if...
0
by: Ike | last post by:
I have an Activex Control created in VB6, which, displays no problem on any machine I have, but, on some machines of others, it does not. All machines are running either XP or Windows 2000, and all...
3
by: DB | last post by:
Hi Folks, I want to create Activex component. Can we create it using c#.net or do I need to create it using vc++? Thanks in Advanced, Deepak
3
by: EJ1003 | last post by:
Hello I would like to create Activex Control uisng C# and use it in ASP.Net webform. User Control is not solving my requirement so I am going for Activex Control. Please guide me on this, how...
7
by: Jarod_24 | last post by:
I just downloaded a activex control that was written in C# and tried to view it on my PDA's Internet Explorer. At my regular PC it displayed just fine, but nothing showed up on the pda. Do...
4
by: Wilfried Mestdagh | last post by:
Hi, I have a C# application (VS2005) with Microsoft Mappoint activeX control on a form. At a certain moment I want to create a second one temporary in code. This seems not to work, when I try to...
6
by: Budhi Saputra Prasetya | last post by:
Hi All, I'm trying to display .NET Custom Control (created using Inherited Control) on an ASPX page, but no luck. I already registered the Control to Global Assembly Cache through .NET Framework...
0
by: Christian Nein | last post by:
Hello, does anybody have experiences with screenshots of ActiveX controls in .NET? I have a panel containing some controls, amongst others some ActiveX controls. I tried ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.