• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Launching a new Window

 
Jamie Wool
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do you create a new applet window from a htme link. Basically i have a link which is supposed to launch a seperate applet(having prob doing this) which is meant to act as a media play, playing a specific file(passed var).

Anyway been trawling the net for a reasonable tutorial or example code without much success. Everything i find is overly complex or deprecated or just plain useless.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd post the code, but the board thinks I'm trying to load an exploit. Simple enough: Make an anchor tag with an onClick action which opens a new window:
JavaScript Window reference
You can also invoke Java Applet methods from JavaScript. This would be useful to pass along the file you wish to play:
JavaScript to Java
 
Jamie Wool
Ranch Hand
Posts: 49
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Maybe i worded it wrong, i don't want to simply bring up another browser window. The pop up is supposed to be an independant applet not a browser window..

code so far..

 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can have an applet launch a new frame or a browser open a new window. I don't know of any way a browser can open an applet except by loading HTML that referrs to the applet in a new browser window. Look at the link above, the section titled "Window Features in window.open()". The new browser window can be created with no decorations. That may be your best bet.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic