Openl JNLP/web start app from browser - javascript

I have a browser with my application running on it and I have one JNLP application installed on my system.
So from browser how do we launch the installed JNLP application.
I know we cannot do it from JavaScript/jquery.
So is there any plugin/extension that will do my work.
Or
can I write some kind of plugin/extension for browser that will invoke my JNLP application.
If Yes how do i proceed?

If you want to run anything Natively, you need to use NPAPI. That allows you to run code outside the sandbox for your extensions.
http://code.google.com/chrome/extensions/npapi.html

Related

How to open an EXE file from a Client Machine through a Web Application using Chrome

How to open an EXE file from a Client Machine through a Web Application using Chrome?
I am able to open the EXE through Internet Explorer since I am using ActiveX Objects to open the Exe file through client side scripting. But since chrome does not support ActiveX I am unable to open the EXE from chrome. Can somebody provide an alternate way to open the exe from chrome?
I know it works if IETab addon is added to the browser for supporting ActiveX. But the client policy will not accept adding add-ons.
I am trying for a solution as such in WebEx websites where a temporary application is run once and each time it is accessed it opens in the temporary app without each time installing it.
Thanks in Advance..
Short and simple answer, NO! it's not possible just by using plain HTML5/JavaScript API, and thank god it's not possible or else the consequences would be devastating! Imagine any random website executing a file on your computer! That would be the worst security nightmare!
But, there are workarounds!
1. You can, for example, use Flash (but you shouldn't) or Silverlight but as mentioned the OP doesn't want any plugin-based solution so I guess they are not as useful.
2. Another solution would be to deploy a Desktop agent, if possible, and then communicate with it using a local Rest API and handle all the native access in that Desktop agent.
Still, the most preferred way would be to just ask your user to scan (or whatever) the document and upload it to your site.
More references can be found here

does jxcore package for node.js lauch the app in browser

i have created windows application using jxcore and mean stack. The executable file works fine and pages are also getting displayed properly. The problem is everytime i have to go to browser and open the localhost:2000 to launch the app. jxcore package runs only the node server but not the browser. Is this the nature of jxcore or i have missed something while creating jxcore executable.
yes, it is the nature of jxcore, in the same way as node.js. one of the simplest way is using node-open: https://www.npmjs.com/package/open.
you can also try project previously known as "node-webkit" (http://nwjs.io/), that allows creating browser together with node code.

HTML application run external exe on chrome using native messaging

Is it possible to run an external exe (under windows) using native messaging from a HTML application (Javascript) ?
Note:
I have a npapi plugin that runs an exe installed in the client machine. now npapi is deprecated, so I need another way to run my external exe from my website.
You are asking if there is a way for an html page to launch an executable on the client's machine? No, that is not possible. It'd be a huge security hole if it were.
What are you trying to accomplish?

App switching in UI Automation

Is there a way to switch between applications using UI Automation in instruments?. And also to change wifi settings using the same? Any help will be greatly appreciated.
There is not currently a way to change connection settings. Although, technically if you are using the simulator you could launch an external script using UIAHost.performTaskWithPathArgumentsTimeout to change the host computers internet settings.
Switching between apps is also not possible for the reason that they don't want you controlling apps that aren't yours. However, if you own both apps I suppose it'd be possible to launch an external script to launch one app in instruments and once that test is over launch the second one. This would only work in some cases though.

Chrome extension development - open folder

I am developing a chrome extension for company internal use, what i want to do is open folder in explorer (design folder at internal server) when someone add the project id in a textbox and click the button,
ex:
'Y:\design\' + siteNumber
Can i do it using javascript?
Thanks!
Nalinda
No, javascript doesn't have access to the local machine's files/folders.
Sort of. You would need to write a stand-alone application in a native language (like C++ or Java) that could execute the opening of the folder, then have the Chrome extension communicate with it through the NPAPI Plugin. You could keep it all in Javascript by creating a Node.js program that executes the open /path/to/folder command (or your OS's equivalent). Either way, that native program would have to be pre-installed on the user's machine. But this doesn't seem like it should be a problem if it is an internal project.

Categories

Resources