Solved

Need to determine if MSXMLX.dll is registered.

Posted on 2004-08-30
2
248 Views
Last Modified: 2008-02-01
How can I determine if MSXMLX.dll is registered on the client computer that is connecting to our asp pages?  We have a web application that uses javascript to make calls to MSXML3.dll on the client computer.  I need to check to make sure it is registered, if it is not then I need to alert the user.  Any ideas?


0
Comment
Question by:Rowdyone52
2 Comments
 
LVL 11

Expert Comment

by:Sven
ID: 11939278
Try to create an instance of a class of the DLL:

On Error Resume Next
Set myObj = Server.CreateObject("MSXMLX.Class") 'define a class inside MSXMLX!!!
If err.number <> 0 Then
  err.clear
  %>
  <script language="javascript">alert('no object');</script>
  <%
Else
  'call methods of objects
End If
On Error Goto 0
0
 
LVL 15

Accepted Solution

by:
deighc earned 500 total points
ID: 11939542
DarthSonic,

Your code is checking the server-side. Not the client...

You could use this javascript function for client-side checking of ANY ActiveX control - just pass it the Prog ID of the object:

function clientHasObject(progId)
{
  var hasObj = true;
  try
  {
    var obj      = new ActiveXObject(progId);
  }
  catch(e)
  {
    hasObj = false;
  }
  return hasObj;
}

To check for MSXML 3:

if(clientHasObject("Msxml2.DOMDocument"))
{
  // User has MSXML 3
}
else
{
  // User doesn't have MSXML 3
}
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…

910 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

24 Experts available now in Live!

Get 1:1 Help Now