Randy Webb wrote:[color=blue]
>
cwdjrxyz@yahoo.com said the following on 10/12/2005 10:56 PM:
>[color=green]
> > DartmanX wrote:
> >[color=darkred]
> >>Well, the reason I ask the question is because what I am doing needs to
> >>be able to determine if ActiveX is completely disabled on IE in order
> >>to display a "Sorry, this function won't work" message.
> >>
> >>Jason[/color]
> >
> >
> > I do not think that javascript is a good answer. Even if you can come
> > up with a script that can detect ActiveX support or not with 100%
> > accuracy, there is a problem. Many people who turn off ActiveX also
> > turn off javascript.[/color]
>
> I have JS enabled, ActiveX disabled. I understand how my browser works,
> how ActiveX works, and what kind of security holes I am opening/closing
> by having it set that way.[/color]
[color=blue]
>[color=green]
> > For all such people, a script method is doomed to failure.[/color]
>
> That is not true. JS/ActiveX is the best answer to answer a JS/ActiveX
> question. You put the warning in the page and then have JS/ActiveX
> remove it.
>
> "Warning: I have no idea how to implement my page without JS and ActiveX
> so if you see this then I failed in my objective of producing an
> accessible webpage to all."
>
> Then, you write an ActiveX object that would change that text. Pretty
> simple stuff.
>
> If the warning stays, then JS is disabled and the user is notified. If
> JS/ActiveX is available, it removes the warning and JS/ActiveX enabled
> users get the enhancement.
>[color=green]
> > Thus, if the detection you wish is reasonable at all, it
> > likely needs to be done on the server using php script, Perl, or
> > something of the sort.[/color]
>
> Huh? And how would the server attempt to determine that? It can't
> possible determine it better than JS could attempt to determine it.
>
> --
> Randy
> comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly[/color]
You do not need to use script at all in many cases - you just take
advantage of the AX object. As I mentioned in my first post, if you
use an AX object and AX is not supported, a second path will be taken
if it is included in the AX object. This second path can be a simple
paragraph that states anything you wish. See
http://www.cwdjr.info/souearly/AXtest.php . This includes an AX object
for the WMP with no other player path if AX is not installed or turned
off. Instead the second path is just a paragraph. Of course you must
have a WMP installed to view how the player works. If I view the page
on IE6 with ActiveX on, the player works. It also works on my Firefox
browser for which I have downloaded the AX plugin for the WMP only. The
player does not appear on my Mozilla, because I have not installed an
AX plugin for the WMP on it. Instead you get the warning that AX is not
installed or turned off. The same happens for the old Netscape 4.8 and
Amaya, which has no AX or javascript installed. The most recent Opera
is a special case. It plays the page as if it had AX installed. I
believe that Opera is using some trick to play media written with AX
support only, even though I doubt if Opera supports AX directly. I wish
someone from Opera would tell us exactly what is going on.