• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Launching a new Window

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
a fool thinks himself to be wise, but a wise man knows himself to be a fool - shakespeare. foolish tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic