aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Is Google Chrome Frame Installed and Enabled? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is Google Chrome Frame Installed and Enabled?" Watch "Is Google Chrome Frame Installed and Enabled?" New topic
Author

Is Google Chrome Frame Installed and Enabled?

Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 396
How can I detect whether Google Chrome Frame (GCF) is installed and enabled? Any javascript or css type solution is welcome. (Strict no-bloat policy against using other frameworks and downloads.)

I am building a website that uses HTML 5 features, not all of which are supported by Microsoft Internet Explorer < v10 (at least). I have a check (javascript) for MSIE 9 or earlier, but this alone would be bad if GCF is installed. If GCF is installed and enabled, the application should go on its merry way without concern for the fact that it's running in MSIE.

Because I know all the specifics, I've decided not to use Browser Feature Detection. BFD seems like an extremely good general solution but more processing than I need for this specific instance. I've tested what I have in Chrome, Firefox, couple versions of Opera, and Safari as well as MSIE with GCF and it works fine. At this point, I'm hiding one feature from MSIE < 10 because it's not supported. But if GCF has been installed, it needs to be available.


Correlation does not prove causality.
Roger F. Gay
Ranch Hand

Joined: Feb 16, 2007
Posts: 396
OK, this happens from time to time. So much time and effort, and then magically, just after asking, the answer is revealed. Might have something to do with composing thoughts while asking the question. Anyway. I already check to see if the user's browser is MSIE < 10. I just needed this.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is Google Chrome Frame Installed and Enabled?