Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do I check for ActiveX without it trying to install?

1 view
Skip to first unread message

joeboyden

unread,
Feb 15, 2007, 3:41:00 PM2/15/07
to
Hi,
I have an asp page that I want to have launch, and check to see if the
client already has an activex control installled, and if not, redirect
them to another page where they don't need the control.

1. Try to load ActiveX
2. If successful, use it.
3. If not successful, DO NOT try to install it.
4. Redirect to different page

The problem is I can get it to stop going to activex.microsoft.com and
codex.microsoft.com! Based on the codebasepath registry entry, and
default HTML OBJECT behavior, it insists on trying to locate the
control to install it. This causes our filewall logon screen to
activate which looks like an error to the users.

Any ideas on how to stop or override this behavior? I don't want
everyone to have this control... only use it if it's already there.

Here's the basics of my code... thanks!!

<OBJECT type = "hidden" ID="APIntegrator" name="APIntegrator"
CLASSID="CLSID:76136A9F-BE80-11D5-81BF-0000F6DC4E2B"
CODEBASE="do-not-try-to-find-this!">
</OBJECT>

</HTML>

<SCRIPT LANGUAGE=VBScript>

'Call up the ActiveX control "APIntegrator"
Set objFileNetIDM = document.all("APIntegrator")

sReturned = objFileNetIDM.IntegratorRun

'Check to see if the APIntegrator was loaded
If sReturned <> "0" Then
'If no APIntegrator, reroute them to web viewer
window.navigate("PSWebview.asp?DocID=14000000")
End if

</script>

0 new messages