473,372 Members | 1,238 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,372 software developers and data experts.

how to launch a window's application from webpage using java?

I want to use some javascript to launch a windows application (this used on
intranet) but don't know how. Can anyone help me out please?

It'd be neat if I could not only launch the application but minimize the
webpage's browser at the same time, but this is just icing on the cake...

-dg
Jul 20 '05 #1
7 30934
dan glenn wrote:
I want to use some javascript to launch a windows application (this used on
intranet) but don't know how. Can anyone help me out please?

It'd be neat if I could not only launch the application but minimize the
webpage's browser at the same time, but this is just icing on the cake...


If by "windows application" you mean a Microsoft windows application,
then AFAIK you can't.

bengee

Jul 20 '05 #2
And on the day Sat, 11 Oct 2003 08:24:46 GMT, da********@yahoo.com
enlightened us with <i7*****************@newssvr25.news.prodigy.com>.. .
I want to use some javascript to launch a windows application (this used on
intranet) but don't know how. Can anyone help me out please?


If using IE, you can use ActiveX.

objXL = new ActiveXObject("Excel.Application");
objXL.Visible = true;
--------------------------------------------------
~kaeli~
Kill one man and you are a murderer. Kill millions
and you are a conqueror. Kill everyone and you
are God.
http://www.ipwebdesign.net/wildAtHeart/
http://www.ipwebdesign.net/kaelisSpace/
------------------------------------------------
Jul 20 '05 #3
"bengee" <po********@localhost.localdomain> wrote in message
news:u7*******************@wards.force9.net...
dan glenn wrote:
I want to use some javascript to launch a windows application (this used on intranet) but don't know how. Can anyone help me out please?

It'd be neat if I could not only launch the application but minimize the
webpage's browser at the same time, but this is just icing on the
cake...
If by "windows application" you mean a Microsoft windows application,
then AFAIK you can't.

bengee


Actually, what I need to run is a help application (.chm) file. It seems
incredible that there is no way to do this! (Platform is Win98, IE6)

-dg


Jul 20 '05 #4
"kaeli" <in********************@NOSPAMatt.net> wrote in message
news:MP************************@netnews.worldnet.a tt.net...
And on the day Sat, 11 Oct 2003 08:24:46 GMT, da********@yahoo.com
enlightened us with <i7*****************@newssvr25.news.prodigy.com>.. .
I want to use some javascript to launch a windows application (this used on intranet) but don't know how. Can anyone help me out please?


If using IE, you can use ActiveX.

objXL = new ActiveXObject("Excel.Application");
objXL.Visible = true;
--------------------------------------------------
~kaeli~
Kill one man and you are a murderer. Kill millions
and you are a conqueror. Kill everyone and you
are God.
http://www.ipwebdesign.net/wildAtHeart/
http://www.ipwebdesign.net/kaelisSpace/
------------------------------------------------


Thanks, ~kaeli~, but actually I need to bring up a Windows ".chm" help
application. (platform is Win98, IE6) Can this be done with Java in some
way??

-dg
Love one and you are average. Love millions and
you are a saint. Love everyone and you are God.
Jul 20 '05 #5
In article <AU********************@newssvr21.news.prodigy.com >,
da********@yahoo.com enlightened us with...

Thanks, ~kaeli~, but actually I need to bring up a Windows ".chm" help
application. (platform is Win98, IE6) Can this be done with Java in some
way??


Not Java - use IE and ActiveX with WSH (windows scripting host).
I tested this with Win2K/IE6, so I would hope it works in 98...
Change the variable helpFile to point to the one you want to open. the
double slashes to separate the directory names are necessary.

<html>
<head>
<title> New Document </title>
</head>

<body>
<SCRIPT Language="JScript">
function openHelp() {
helpFile="C:\\WINNT\\Help\\access.chm";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(helpFile);
}
</SCRIPT>
<A href="#" onClick="openHelp(); return false;">Open Help File</A>
</body>
</html>
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #6
"kaeli" <in********************@NOSPAMatt.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <AU********************@newssvr21.news.prodigy.com >,
da********@yahoo.com enlightened us with...

Thanks, ~kaeli~, but actually I need to bring up a Windows ".chm" help
application. (platform is Win98, IE6) Can this be done with Java in some
way??


Not Java - use IE and ActiveX with WSH (windows scripting host).
I tested this with Win2K/IE6, so I would hope it works in 98...
Change the variable helpFile to point to the one you want to open. the
double slashes to separate the directory names are necessary.

<html>
<head>
<title> New Document </title>
</head>

<body>
<SCRIPT Language="JScript">
function openHelp() {
helpFile="C:\\WINNT\\Help\\access.chm";
WSH=new ActiveXObject("WScript.Shell");
WSH.run(helpFile);
}
</SCRIPT>
<A href="#" onClick="openHelp(); return false;">Open Help File</A>
</body>
</html>
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------


Right - not 'java' - I meant javascript when I typed 'java'. I know what you
say here will work because someone else from an HTML newsgroup pointed me to
a long-winded general purpose 'launch' javascript program that used windows
scripting host and ActiveX object as well, in the same way. When I tried
that, it worked, but IE would always prompt with a security warning about
the ActiveX being downloaded that the user would have to step past.

Since then someone referred me to a page which said all I needed to use was
'showHelp' with the argument being the path-filename of the .chm help file.
In other words:

function openHelp() {
window.showHelp('c:/path/helpfile.chm');
}

This works perfectly - no IE security warning to have to step past. At least
on my XP home machine, it works. The article said it should also work on
Win98 (where I intend to install it), and for Win95 it could be made to work
by downloading something or other and installing it, but I didn't pay much
attention to that, not having to worry about win95.

-dg
Allah protects, Jesus redeems, Buddha awakens.
I sure could go for a good hamburger right now.
Jul 20 '05 #7
In article <F_**********************@newssvr21.news.prodigy.c om>,
da********@yahoo.com enlightened us with...

function openHelp() {
window.showHelp('c:/path/helpfile.chm');
}

This works perfectly - no IE security warning to have to step past. At least
on my XP home machine, it works.


Hey, that's good to know.
It probably only works in IE, but for many intranet applications, that
suffices.
Thanks for the tip.
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: | last post by:
In IE, from the child window of a frameset i use the function top.window.close() And this works in IE, but not in nn4! How can i make this same effect in nn4? please help
1
by: Michael Howes | last post by:
I have a c# windows form that talks to a web service on a server that then can talk to multiple "agents" on different machines using web service calls. I want to be able to launch an application...
4
by: Fei Li | last post by:
Hi, How can I launch a java application from c# code without console window? My command is like: javaw -cp .;lib myApplication Thanks
2
by: Steve Parks | last post by:
Using server-side code, how do I launch a new window? I have an ASP.Net application that uses a frameset, yet I have some (crystal) reports I want to view in a separate window. I can probably...
7
by: Paul | last post by:
Hi. I need to launch a windows application and then send keyboard event to this process to run certain commands. I've created a COM+ appplication to spawn and talk to the application which works...
1
by: Jacob | last post by:
I have several web apps that I want to redirect to a new page, but have that page open in a new browser window. The basic scenario is that I have a CrystalReport object that gets created and...
3
by: felecha | last post by:
I want my VB.Net application to have a button that the user will click to open a browser window, and call the webpage I designate in code. The system is a closed network, no Internet access, but...
4
by: Joe | last post by:
I created a CustomAction for this but I don't think I have it in the right place. I tried both Install and Commit but neither allow it to get to the final screen. Are there any examples of this...
0
by: naliaca | last post by:
Somebody help me please, how can I do to launch a window´s application inside a webpage (htm)?
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.