Solved

Need to determine if MSXMLX.dll is registered.

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

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…
Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

813 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

16 Experts available now in Live!

Get 1:1 Help Now