We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › spawn new window
Page Index Toggle Pages: 1
spawn new window (Read 365 times)
spawn new window
Apr 22nd, 2006, 8:55pm
 
I'm writing an applet that has an interactive GUI involving dots. When you click on said dot, it should load a specified image in another browser window. Looking over PApplet's functions I tried open() and link() and couldn't figure out how to spawn it into a new browser window (like a popup or so). What would be the best way to achieve this affect?

Also, a PImage is what it's loading in that browser window, is there a way to make the popup the size of the PImage? I'm unfamiliar with browser/Java interaction.
Re: spawn new window
Reply #1 - Apr 22nd, 2006, 11:30pm
 
You can load a URL in a different window using:

link("http://my.website.com/foo/", "_new");

Page Index Toggle Pages: 1