Log in   Register a New Account

Accessify Forum - Independent Accessibility Discussion Since 2003; Professional, Moderated, Web-based, Archived

New to the forum?

Only an email address is required.

Register Here

Already registered? Log In

Currently Online

No registered users are online.

detecting the activex plugin

Reply with quote Hi

anybody got any idea how to go about detecting for the presence of the xstandard plugin?

Thanks

Julian
Reply with quote Hi jscar,

I’m also desperately looking for a method to do this because of IE7. It seems that IE7 does not automatically install the plugin ActiveX, nor does it give youthe option to.

If anyone knows how to detect for the XStandard plugin I’m sure a lot of people would be very very grateful.

I have tried some javascript like:

try{
var control = new ActiveXObject(“XStandard.XStandard”);
}

catch(er) {
alert(‘Text editor not installed! ‘);
}

I think I have used the wrong (“namespace.codebase”) but cannot find any reference for what they should be.

[jscar – sorry I cannot offer any help myself]
Reply with quote … another suggestion from XStandard support.
Sadly this does not seem to work either.


<script type=”text/javascript”>

function checkXStandard() {

try {
document.getElementById(‘editor1’).EscapeUnicode = true;
alert(‘editor installed’);
}
catch(er) {
alert(‘editor not installed’);
}

}

window.onload = checkXStandard;

</script>


Surely some other IE7 users have come across this problem?

Regards,
Charles.
Reply with quote charford, most likely Microsoft will fix the IE 7 auto-install bug next month. If you really need this feature, when generating the Web page for IE, instead of:

Code:
<object type="application/x-xstandard" …


use:

Code:
<object classid="clsid:0EED7206-1661-11D7-84A3-00606744831D" …


Guys, please, this forum is for accessibility related issues only.

Vlad Alexander
XStandard Development Team
http://xstandard.com
Reply with quote Hi Vlad,

Many, many, many thanks for your workaround – so simple and so efficient.

Sadly this breaks it in Firefox so you need to set up browser detection and a variable to swap between them. I have done this using ASP like this:
<%
‘Test browser and replace string in form object
Dim user_agent, strActiveX
user_agent = Request.ServerVariables(“HTTP_USER_AGENT”)

If Instr(user_agent,”MSIE 7″) Then
strActiveX = “classid=’clsid:0EED7206-1661-11D7-84A3-00606744831D'”
Else
strActiveX = “type=’application/x-xstandard'”
End If
%>

Then replace the “classid=blah” or “type=blah” item in the <object> tag with <%=strActiveX %>

Perhaps you could suggest to the web people at XStandard.com they mention this on the site in the FAQs. I’m sure it will be usefull to a lot of people.

Also, I’m sorry to misunderstand the nature of this forum.
Is there one for general XStandard stuff like this?

Yours very thankfully,
Charles.

p.s. I hope Microsoft will eventually get their browsers standards compliant.
Reply with quote
charford wrote:
Is there one for general XStandard stuff like this?

No. Free tech support we offer should be able to deal with all issues that come up.

Charles, Support is aware of this workaround; but since it involves the bad practice of browser sniffing, it was desided not to make this a recommended fix.

Vlad Alexander
XStandard Development Team
http://xstandard.com
Reply with quote possibly a more fundamental question is: why are you trying to detect the presence or absence of XStandard? If it’s to offer an alternative, or put a download link to it on a page or similar, my suggested solution (using <OBJECT> and fallback content, with just a tiny amount of javascript to fix an issue in Firefox) should do the trick.

XStandard integration javascript

Patrick H. Lauke / splintered
Reply with quote
redux wrote:
possibly a more fundamental question is: why are you trying to detect the presence or absence of XStandard? If it’s to offer an alternative, or put a download link to it on a page or similar, my suggested solution (using <OBJECT> and fallback content, with just a tiny amount of javascript to fix an issue in Firefox) should do the trick.

XStandard integration javascript


Well, it was an old project that’s dead now so my memory is a tad hazy but was building a mini-CMS for a highly computer-illiterate group of people to maintain web pages (‘for the purposes of community leadership’ I think was the associated phrase). I wanted to make it as simple as possible for them and only ask them to download the plugin once but i had no control over where they might access the CMS from so I wanted to check for the presence of xstandard to see if they needed to be asked to download it. Seemed a reasonable approach at the time.

Display posts from previous:   

All times are GMT

  • Reply to topic
  • Post new topic