Solved

Need to determine if MSXMLX.dll is registered.

Posted on 2004-08-30
2
247 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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
pass url parameter as session 9 40
Group by correlation 4 43
Select distinct 25 60
ASP Focus problem 3 26
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This video discusses moving either the default database or any database to a new volume.

743 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