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 › control window not as a popup when exporting
Page Index Toggle Pages: 1
control window not as a popup when exporting (Read 297 times)
control window not as a popup when exporting
Jul 16th, 2008, 11:50pm
 
i created a small control window for my applet and now want to export it to put it on a website.
when uploading and opening the site i get my applet inside of the webbrowser and the control window as a second browser window that pops up.

acutally i want the control window to be part of the browser window and to be set at the left side of the applet.

is there a function i  need to change to get both windows in one browser window?

thanks
Re: control window not as a popup when exporting
Reply #1 - Jul 17th, 2008, 10:35am
 
I am not sure to fully understand.
If you have two sketches, you have to export them both as applets, then merge them in the same HTML page, by copying the <div id="SketchName_container">...</div> from one page to the other.
Communication between them can be a bit tricky, though, probably need to go via the JavaScript layer, unless somebody else knows better.
Re: control window not as a popup when exporting
Reply #2 - Jul 17th, 2008, 11:04am
 
If you're explicitly creating a new window for your control, then it'll always be a new window.. there's no way to get it embedded into the page alongside the applet.

To get that sort of effect, you'd have to have 2 sketches, and have them communicate via JavaScript in the page or something.
Page Index Toggle Pages: 1