This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Threading an external application

 
Rudy Simon Yeung
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to thread an external application from within an html/jsp page. It is exactly the same as clicking a video link provided in the browser, and then a window media player will then pop up. However, it is different from popping up a URL resource which you can make use of the window.open() in the javascript. Can anyone tell me how it can be done?

Thank You,

Rudy

[ October 13, 2004: Message edited by: Rudy Simon Yeung ]

[ October 13, 2004: Message edited by: Rudy Simon Yeung ]
[ October 13, 2004: Message edited by: Bear Bibeault ]
 
Murthy Cherukumilli
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
function execute(){

var Shell = new ActiveXObject("Shell.Application");
var EXEPATH = "NOTEPAD.EXE";
Shell.ShellExecute(EXEPATH, "",
"", "open", "1");
}
 
Rudy Simon Yeung
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Murthy,

I try your code out, but then I encounter a "permission denied" error in the javascript. Is there a security issue in IE that I have to deal with?

Thank You,

Rudy
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic