This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > FrontPage Programming > February 2007 > How to stop ActiveX install on ASP page?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to stop ActiveX install on ASP page?
joeboyden

2007-02-16, 6:16 pm

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>

Thomas A. Rowe

2007-02-17, 6:16 pm

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

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

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


"joeboyden" <joeboyden@yahoo.com> wrote in message
news:1171641429.875806.95840@q2g2000cwa.googlegroups.com...
> 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>
>



joeboyden

2007-02-17, 6:16 pm

> 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?

Thomas A. Rowe

2007-02-19, 6:17 pm

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
==============================================


"joeboyden" <joeboyden@yahoo.com> wrote in message
news:1171724909.988440.323340@h3g2000cwc.googlegroups.com...
>
> Thanks, the question was, and is... how do I prevent the activex
> installation attempt?
>



joeboyden

2007-02-19, 6:17 pm

On Feb 19, 8:41 am, "Thomas A. Rowe" <tar...@mvps.org> wrote:
> 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.

Thomas A. Rowe

2007-02-19, 6:17 pm

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
==============================================


"joeboyden" <joeboyden@yahoo.com> wrote in message
news:1171899346.713349.275410@j27g2000cwj.googlegroups.com...
> On Feb 19, 8:41 am, "Thomas A. Rowe" <tar...@mvps.org> wrote:
>
> 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.
>



Thomas A. Rowe

2007-02-19, 6:17 pm

See:
http://msdn.microsoft.com/library/d...xpsp2compat.asp

Click on ActiveX Restrictions (IE under Windows XP, SP2)

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

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


"Thomas A. Rowe" <tarowe@mvps.org> wrote in message news:ul34g1DVHHA.4668@TK2MSFTNGP04.phx.gbl...
> 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
> ==============================================
>
>
> "joeboyden" <joeboyden@yahoo.com> wrote in message
> news:1171899346.713349.275410@j27g2000cwj.googlegroups.com...
>
>



joeboyden

2007-02-19, 6:17 pm

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.

Mike Mueller

2007-02-19, 6:17 pm

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


"joeboyden" <joeboyden@yahoo.com> wrote in message
news:1171641429.875806.95840@q2g2000cwa.googlegroups.com...
: 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>
:


Mike Mueller

2007-02-20, 6:15 pm

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.

"joeboyden" <joeboyden@yahoo.com> wrote in message
news:1171905531.904886.85550@l53g2000cwa.googlegroups.com...
: 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.
:


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews