java - Open client's desktop application from web page link -


It is possible to launch client-side desktop applications such as Adobe Reader, any game or other soft-goods

/ Strong> from the web?

I got a link

Where one of them gave way to open Notepad (desktop applications) using javascript, which is limited to IE.

In the same way, I want to create such links on my web page so that users click on the link like

for example, if the user clicks on the link then " Adobe Reader "Then the Adobe Application should open / launch.

Is there any way to open any desktop application from the Web?

I have come to the signed applet concept, where we will sign the web page from the web page using the tag, & amp; Inside

Applet will call desktop applications

By using the applet method, I have created a signed applet, & amp; I am able to open the Notepad application by providing the path directly in the applet:

  process process = new processbler ("C: \\ Windows \\ notepad.exe").  

But how can I do this in the generic way, it means that Notepad application or any other software can be installed anywhere in the system.

Therefore We will not know about the installed path of the application , by using the service in any way we can start them as a service Are there.

  process process = new processbilder ("notepad.exe"). Start ();  

I manage by targeting the target application as a protocol handler, or Then the target application

then use a link: myapp: // nobodyaction / arg0 / arg1

then myapp: // noaction / Arg0 / arg1 will be given to your app as a command line argument, you can parse and take appropriate action.

Here's an MSDN article on how to get it:

In your case, you either:

  • create a script / registry key Which will register the protocol for the target application, and download the client and install it. Then you can add, e.g. Myapp: // reader /
  • Create an app and install it to the client, the handler will again take the target app from the URL eg Myapp: // reader / document or just myapp: // reader to open "Adobe Reader" on the client machine.

The second method is particularly useful if you want to perform more actions on the basis of Arguments specified in the URL.


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -