문제

I have the following code to detect to see if CF BHO is enabled, but unfortunately it didn't work out, it alway returns "automation server failed to create obj"

  var activexGoogleFrameBho = new ActiveXObject('ChromeFrame.Bho');
  if (activexGoogleFrameBho) {
    ...
  }

My user agent and page header are as following:

  mozilla/4.0(compatible; msie 8.0; windows nt 6.1; wow64; trident/4.0;
  chromeframe/32.0.1700.107; slcc2; .net clr 2.0.50727; .net4.0c; .net4.0e)

  <meta http-equiv='X-UA-Compatible' content='IE=Edge,chrome=IE8'/>

any ideas?

Thanks,

도움이 되었습니까?

해결책

I'm not sure if you can detect the helper object itself though to see if the current page is loaded in chromeframe you can check if window.externalHost exists.

http://www.chromium.org/developers/how-tos/chrome-frame-getting-started/understanding-chrome-frame-user-agent#TOC-From-the-script-on-the-web-page

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top