How to stop ActiveX install on ASP page?

J

joeboyden

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 a default windows registry entry, and
default 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?

Here's the basics of my asp code...

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

</HTML>

<SCRIPT LANGUAGE=VBScript>

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

'Check to see if the ActiveX control is responding
If sReturned <> "0" Then
'No ActiveX control, so reroute to web viewer
window.navigate("PSWebview.asp?DocID=14000000")
End if

</script>
 
T

Thomas A. Rowe

FYI: VBScript is only support client side (Browser) in IE under Windows.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

joeboyden

FYI: VBScript is only support client side (Browser) in IE under Windows.
Thanks, the question was, and is... how do I prevent the activex
installation attempt?
 
T

Thomas A. Rowe

By not using ActiveX components. Suggest you post this to the IE and/or Windows newsgroup(s)

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

joeboyden

By not using ActiveX components. Suggest you post this to the IE and/or Windows newsgroup(s)

You have a funny way of saying "I don't know". I suppose it's a hard
thing to admit, especially after you've gone to the trouble of placing
MVP in your title, but I have to believe there's still a better
response than "don't do that - now go away".

This is frontpage.programming, which is exactly what I'm doing, so
next time, you could help me more by not replying to my posts when you
don't know the answer.
 
T

Thomas A. Rowe

This is not a MS FrontPage issue!

The ability to run an Active X component on a web page is based on the OS and the user's browser
setting.

Have you followed my suggestion and post this issue to the IE or Windows newsgroup?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage

http://www.Ecom-Data.com
==============================================
 
J

joeboyden

Again, I am "programming" in "microsoft" "frontpage".

I am "public"ly seeking out people who are also programming in
FrontPage who may be familiar with a workaround to this problem. It's
pretty specific, so I understand if I don't find the answer.

This was not my first post looking for help with this tricky problem,
and I don't expect it to be my last. I found this forum and thought I
might find people doing work like me.... you know, programming in
FrontPage.

If I had gotten help elsewhere, I would not have come here.

If I had know how flippant and dismissive the responses would be, I
would not have come here.

Thank you for the link. I did not see anything in there saying
whether I can or can't accomplish my objective.
 
M

Mike Mueller

Why not
a) Check the user-agent to see if it is an activeX
supporting browser?
b) Not use the activeX object and embed it instead. I hate
clicking on the stinking control to make it work


: 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 a default windows registry
entry, and
: default 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?
:
: Here's the basics of my asp code...
:
: <OBJECT type = "hidden" ID="APIntegrator"
name="APIntegrator"
: CLASSID="CLSID:76136A9F-BE80-11D5-81BF-0000F6DC4E2B"
: CODEBASE="if-not-found-do-not-try-to-install!!">
: </OBJECT>
:
: </HTML>
:
: <SCRIPT LANGUAGE=VBScript>
:
: 'Call up the ActiveX control "APIntegrator"
: Set objFileNetIDM = document.all("APIntegrator")
: sReturned = objFileNetIDM.IntegratorRun
:
: 'Check to see if the ActiveX control is responding
: If sReturned <> "0" Then
: 'No ActiveX control, so reroute to web viewer
: window.navigate("PSWebview.asp?DocID=14000000")
: End if
:
: </script>
:
 
M

Mike Mueller

Well, seeings you mention flippant responses, I will add
another one-
your code could have just as easily been done in notepad.
Have you posted to the notepad-programming NG?

I think posting this to an IE newsgroup such as
inet.scripting or inetsdk.activescripting amongst others
would be the best route for you.

: Again, I am "programming" in "microsoft" "frontpage".
:
: I am "public"ly seeking out people who are also
programming in
: FrontPage who may be familiar with a workaround to this
problem. It's
: pretty specific, so I understand if I don't find the
answer.
:
: This was not my first post looking for help with this
tricky problem,
: and I don't expect it to be my last. I found this forum
and thought I
: might find people doing work like me.... you know,
programming in
: FrontPage.
:
: If I had gotten help elsewhere, I would not have come
here.
:
: If I had know how flippant and dismissive the responses
would be, I
: would not have come here.
:
: Thank you for the link. I did not see anything in there
saying
: whether I can or can't accomplish my objective.
:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top