By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,766 Members | 1,265 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,766 IT Pros & Developers. It's quick & easy.

parameter passing to lauched applications.

P: n/a
Hai all, I am interested to know how the following
can be done. I don't deal with HTML much and therefore
would like to get help.

The user should be able to see a link. Upon clicking
the link an application (e.g. Calculator) is launched.
The launched application should be able to request the
Web Browser environment to pass any and all parameter
values.

The following is my version of the html code.

<A href="calc.exe" param_1="3, param_2="6">Get Product</A>

Upon clicking the program the Calculator program will be
launched and the product 3 * 2 = 6 will be displayed.

Could you please give an example. I know how to setup
a simple link. I don't know how the link is written
to launch an application. For example the string "calc"
into the "run" window on Microsoft platform will launch
the Calculator program. The same does not do from the
link, most likely due to "PATH" env variable not being
available to the browser.

thanks. ramesh.
Jul 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Els
Ramesh wrote:
I don't know how the link is written
to launch an application. For example the string "calc"
into the "run" window on Microsoft platform will launch
the Calculator program. The same does not do from the
link, most likely due to "PATH" env variable not being
available to the browser.


You can't launch programs on the visitor's computer.

--
Els http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Now playing: Cristina Aguilera - Can't Hold Us Down
Jul 20 '05 #2

P: n/a

Els wrote:
Ramesh wrote:

I don't know how the link is written
to launch an application. For example the string "calc"
into the "run" window on Microsoft platform will launch
the Calculator program. The same does not do from the
link, most likely due to "PATH" env variable not being
available to the browser.

You can't launch programs on the visitor's computer.


Isn't that a new feature in the next IE version? :-)

--
/Arne
http://w1.978.telia.com/~u97802964/
Jul 20 '05 #3

P: n/a
Els
Arne wrote:
Els wrote:
Ramesh wrote:
I don't know how the link is written
to launch an application. For example the string "calc"
into the "run" window on Microsoft platform will launch
the Calculator program. The same does not do from the
link, most likely due to "PATH" env variable not being
available to the browser.


You can't launch programs on the visitor's computer.


Isn't that a new feature in the next IE version? :-)


Feature?
Maybe I'll ditch Windows and go for Linux then :D

--
Els
http://locusmeus.com/
Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -
Jul 20 '05 #4

P: n/a

Els wrote:
Arne wrote:

Els wrote:

Ramesh wrote:
I don't know how the link is written
to launch an application. For example the string "calc"
into the "run" window on Microsoft platform will launch
the Calculator program. The same does not do from the
link, most likely due to "PATH" env variable not being
available to the browser.

You can't launch programs on the visitor's computer.


Isn't that a new feature in the next IE version? :-)

Feature?
Maybe I'll ditch Windows and go for Linux then :D


I belive staying away from IE will do. But if Windows/IE want to make
my coffee, I will go for Linux because I don't like caffeine free
coffee <g>

--
/Arne
http://w1.978.telia.com/~u97802964/
--------------------------------------------------------------
Webbläsare är dumma. Om du ger dem kod som är mer komplicerad
än den behöver vara, kommer de att göra dumma saker.
--------------------------------------------------------------
Jul 20 '05 #5

P: n/a
Arne <ar********@telia.com> wrote in message news:<5C********************@newsc.telia.net>...
Els wrote:
Arne wrote:

Els wrote:
Ramesh wrote:
>I don't know how the link is written
>to launch an application. For example the string "calc"
>into the "run" window on Microsoft platform will launch
>the Calculator program. The same does not do from the
>link, most likely due to "PATH" env variable not being
>available to the browser.

You can't launch programs on the visitor's computer.

Isn't that a new feature in the next IE version? :-)

Feature?
Maybe I'll ditch Windows and go for Linux then :D


I belive staying away from IE will do. But if Windows/IE want to make
my coffee, I will go for Linux because I don't like caffeine free
coffee <g>

I may have been a bit loose in my description. What do you call the launch
of Quicktime or Realplayer to play video/audio files. When the browser attempts
to get the specified url it can recognize if it is data it can handle. If not
before requesting the url, at least when the data stream arrives it recognizes
the data type is for a helper app to handle and simply passes that handle.

I am assuming something similar could be done. ramesh
Jul 20 '05 #6

P: n/a
Ramesh wrote:
the launch of Quicktime or Realplayer to play video/audio files.
When the browser attempts to get the specified url it can recognize
if it is data it can handle.


What you need: a normal link in your html, and a server that sends the
correct MIME type for the file.

<a href="foo.ram">my answering maching ogm</a>

Your sever must be configured to send

audio/x-pn-realaudio

as the MIME type for foo.ram.

HTH

--
Brian (remove ".invalid" to email me)
http://www.tsmchughs.com/
Jul 20 '05 #7

P: n/a
Ramesh <re*******@yahoo.com> wrote:
I may have been a bit loose in my description. What do you call the
launch of Quicktime or Realplayer to play video/audio files. When the
browser attempts to get the specified url it can recognize if it is data
it can handle. If not before requesting the url, at least when the data
stream arrives it recognizes the data type is for a helper app to handle
and simply passes that handle.

I am assuming something similar could be done. ramesh


See the answer to the Frequently Asked Question, "How do I force the
browser to download a file? How do I force the browser to show/play a file
itself? How do I force a file to be opened by a particular program?"
<http://www.htmlhelp.com/faq/html/media.html#force-download>
--
Darin McGrew, mc****@stanfordalumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp.com, http://www.HTMLHelp.com/

key ring /'kE 'ri[ng]/ n. device enabling simultaneous loss of multiple keys
Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.