Solved

Need to determine if MSXMLX.dll is registered.

Posted on 2004-08-30
2
250 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Connection String to remote Server not working 3 92
Classic ASP - problem with MS SQL Select Query? 10 60
Obtaining data on ASP 8 28
Insert Button on a table 16 37
I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

856 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