I'm using Ignition HMI application and it uses the JXBrowser as it's web browser component. I need to change the default image viewer used by JXBrowser to use a web-enabled browser with more capabilities (pan & zoom, called OpenSeaDragon).
How can that be done? I know you can get the BrowserPreferences, but I did not see anything specific to the default apps used.
OpenSeadragon is a JavaScript library that must be embedded into the web page and configured to provide an image viewer that can be used for panning, zooming, etc. I see they also provide a browser extension that allows you to view any image on a web page with their viewer, however, JxBrowser does not support Chrome/Chromium extensions at the moment.
Related
I am using a custom font for a web page with font-face.
I use node as a back-end with express and I have the custom font in a "public" folder. Is it possible to hide somehow the font from the user to be able to download it?
Is it possible to hide somehow the font from the user to be able to download it?
No, it is not. If the font is usable in the user's browser, then by necessity, the browser downloaded the font. If the browser downloads the font, so can anyone else.
This is the architecture of the web. The same is true for images displayed in the browser, HTML displayed in the browser or Javascript code run in the browser or any resource used in the browser. All are available to the end user if they so choose to access them directly.
I have a html page which uses the html5 canvas. When I open this page in Eclipse 4.5.2 on Windows and Mac OS Internal Web Browser it shows me the canvas and other things defined correctly. However when I tried the same on Linux (Eclipse 4.5.2) the internal web browser showed me all other contents except for the html5 canvas.
Please could you help me understand why the Linux variant of Eclipse does not show html5 contents in the internal web browser. What am I missing?
Thank you.
The problem was with xulrunner version.
I used the xulrunner version 24 and specified the following arguments in the vm arguments tab of the run launch configuration and it worked!
-Dorg.eclipse.swt.browser.DefaultType="mozilla"
-Dorg.eclipse.swt.browser.XULRunnerPath="pathToXulRunner"
OR you can do that same by setting the System property through your java code
System.setProperty("org.eclipse.swt.browser.XULRunnerPath", "pathToXulRunner");
and then use the SWT.MOZILLA flag to create browser
eg Browser b = new Browser(parent, SWT.MOZILLA);
Cheers
-Kapil
Is it possible to create a browser extension that would allow page-controlled window opacity? Not so that various elements on the page are of a given opacity, but to allow one to see other windows (like the desktop) behind the browser page.
Thank you.
No, this is not possible in an extension. Such transparency would be handled at the window manager level, and would require platform-specific code. This means that either Chrome would have to add this feature and expose it as an extension API (currently no such feature exists), or you would have to write a plugin.
Does anyone know if this is possible in J2ME;
I want to have an app that simply launches a browser when opened and directs the browser to a specific web page.
If so, is it widely supported.
You can use javax.microedition.midlet.MIDlet.platformRequest() to launch the browser on almost all phones that support JavaME. This article tells more about invoking platform services such as browser.
Adobe release new interesting product - Adobe Shadow. And in its core is a chrome extension which listen for connection of a remote devices (its also interesting how this is done, but i think its might utilize own http service to communicate such request), but whats more interesting is that it listen for DOM, JavaScript and CSS changes (using chrome inspector for developers) and communicate this changes to othere devices. Yet in manifest this extension is only declare it was aware of only tabs switch activity - how this is possible?
You are incorrect about the Shadow Chrome Extension listening for DOM, JavaScript and CSS changes in the page. When you click on the Remote Inspection button in the Chrome Extension, we open a window to a weinre server and inject the required weinre javascript into the page on the device.The weinre window looks like Chrome Dev Tools because they both use WebInspector, which is part of WebKit.
Read More About This In The Shadow FAQ
Read more about weinre
The Shadow Chrome Extension doesn't listen to anything at the page level. It gets the URL to send out to devices from the tabs permission.
I've only had a quick look at the ("confidential" marked) code I recommend you take a look at the skylab.js file.
It appears they're primarily using WebSockets to make the calls to a service running on your machine at . I'm guessing this belongs to the Adobe Shadow fat client.
Perhaps because your call an already existing service that's running on the local machine Chrome does not require any additional permissions. I've searched the code and see no mention of optional permissions either.
This is very interesting as I imagine this could be a concern for security, but maybe only on machines which are already infected with malicious code.