enabling ActiveX control in chrome and firefox - google-chrome

We are using WebTwainX in our application where WebTwainX needs ActiveX to be enabled it supports only in Internet Explorer. How can I enable ActiveX in Chrome and Firefox so that WebTwainX works fine?

You cannot. It is a proprietary, platform-specific technology. Only Internet Explorer for Windows supports ActiveX.

By default, Google Chrome and Firefox web browsers do not support ActiveX controls. However, there are workarounds to enable ActiveX controls and get the required functionality based on ActiveX controls.
Google Chrome users can download IE Tab extension that acts as Internet Explorer emulator. It helps enable ActiveX controls in Google Chrome as it emulates IE by using the IE rendering engine directly within Chrome.Firefox users can install ff-activex-host plugin to enable ActiveX controls in the browser. This plugin makes it possible to use (host) ActiveX controls in Firefox and provides full access to the hosted control (events, functions, properties).

Related

How to enable WebVR on Google Chrome?

I am trying to create a WebVR scene. For this task, I want to enable WebVR on Google Chrome. My OS is Windows 8.
I open flags using chrome://flags/. WebVR is not there. How can I enable it?
Official channels of Google Chrome do not support WebVR. (now they do, see below)
There is an unofficial build of chrome that does. FYI Firefox Nightly also supports WebVR in their official and current release, as does Samsung Internet Beta for GearVR (the latter after some configuration).
UPDATE: Chrome Android now works with WebVR if you enable chrome://flags/#enable-webvr. See this manual on how to enable WebVR on different browsers.
You can install Google Chrome extension for WebVR debugging
It can really help to debug your VR application.
You will be able change the position of the virtual device in the environment, to see the change of camera position.
Also, it is possible to emulate the HTC Vive controllers.
Alternative is to use WebVR polyfill
It adds WebVR-API to your browser.
Currently you can test your sample webVR code on the following browsers :
Google Chromium
Firefox Nightly
Samsung browser for webVR
Google Chrome version 54.0 onwards was expected to support webVR, but it seems we have to wait a little more.
If you are not very comfortable with ThreeJS library for VR projects, you should try aframe framework ( check http://aframe.io ). Here you will focus only on the VR code flow and all other graphics related overheads (camera, rendering etc) will be taken care by aframe itself.
Do you still need this special Chromium build?
In latest Chrome #58 it seems the feature is available within chrome://flags now
WebVR Mac, Windows, Linux, Chrome OS, Android Enabling this option
allows web applications to access experimental Virtual Reality APIs.
#enable-webvr
Didnt try it out yet though (dont want to break my productive browser)
Greetz

StageWebView - Change system browser

Running StageWebView on a Windows Desktop machine, uses IE as it's browser, no matter what is the systems default Internet Browser. Is it possible to change this to Chrome?
I'm not interested in the built in Webkit browser in AIR
Sorry but the answer is no, the StageWebView class on mobile or desktop uses the OS provided web control to display content on the Stage:
On desktop computers (in the desktop and extended desktop profiles),
the StageWebView class uses the system web control provided by the
Flash Player plugin.
Thus on Windows that would be Internet Explorer (IE) via the IWebBrowser2 interface which Google's Chrome does not support.
Note: This is assuming you are passing true for the useNative parameter on the StageWebView constructor, otherwise the on Windows/OS-X you would get the old built-in Webkit version. This can be checked by seeing which user-agent is used (try http://whatsmyuseragent.com or similar to verify)
Air 18 (or 19 beta results in same rendering) on Windows and OS-X:

Native application interraction with browser extentions

An external native application should communicate with browser extensions, e.g. send information to browsers what information to fill on web pages.
Those plugins or browser extensions are not yet developed, but I need to support at least Chrome, Firefox and Safari.
What kind of technology can be used to communicate external application with browser extensions? I checked Chrome and it has native messaging for these kind of cases, but I need generic solution what should work for other browsers as well. Any ideas?
There is no generic solution to compatible with all browsers at the moment. So you have to develop different extensions by using different ways for different browsers.
For Safari, you can see here
https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/CommunicatingwithyourOSXApplication/CommunicatingwithyourOSXApplication.html#//apple_ref/doc/uid/TP40009977-CH23-SW4
But unfortunately, it only supports from Safari 9.0 and OSX 10.10
For Chrome, you already know that Native Messaging is the right choice.
For Firefox, you can create a server socket, and listen to specific port. While your native application communicate with Firefox extension through the port. You can find an example here: TcpSocket listen on Firefox addon

How to make Google Chrome Frame support ActiveX plugin?

My customers still use Windows XP as their OS on which the newest version of IE is version 8. IE 8 does not support most of HTML5 features which are used in my software.
So I want to use Google Chrome Frame to solve this problem.
On the other hand my software also need to embed an ActiveX plugin to render sense which might not be supported by Google Chrome Frame. I know a extension named ActiveX for Chrome can make chrome support ActiveX plugins. I tested in the original google chrome, it works. But I do not know how to install ActiveX for Chrome extension to Google Chrome Frame.
Any reply will be thankful.
ActiveX for Chrome
Google Chrome Frame
After google some web pages, I found the answer.
Enter gcf:about:version in IE.
right click the menu.
select review element menu item.
click the system icon of the popup window.
click new windows menu item.
Then you got a chrome window. Install the ActiveX for Chrome.

HTML5: tab management

Does HTML5 allow JavaScript to open, close, or switch to a tab in the browser? Can I call a JavaScript function to perform these in any HTML5 browser?
Nope, javascript or HTML5 has nothing to do with switching tabs of browser. You can open/close/focus popup windows though.
There's no standard API for that.
You can only do it if you create a browser extension in Chrome, Firefox or Safari
You will be able to control the tabs from Javascript but that will work only for those users that explicitly installed the extension in each browser.