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 › preview in browser
Page Index Toggle Pages: 1
preview in browser (Read 341 times)
preview in browser
Nov 6th, 2008, 3:23am
 
How about this one --

I make a sketch and export it, then click on the index.html file to preview it in mozilla, no matter what (size) i make the window it shows up very small in the browser.

please help get me going

Re: preview in browser
Reply #1 - Nov 6th, 2008, 9:52am
 
is size(..) the first command in setup? And does it have actual numerical values in it?
Re: preview in browser
Reply #2 - Nov 6th, 2008, 1:43pm
 
Quote:
is size(..) the first command in setup? And does it have actual numerical values in it?


Yes

size (500,500);

But if i load one of the example sketches everything works fine. This means its my sketch thats the problem...

im at work now (going to try it here)
if i dont get it figured out, ill post my sketch tonight.

thanks
Re: preview in browser
Reply #3 - Nov 6th, 2008, 2:07pm
 
If you look in the generated index.html, you should see a pair of lines:

width="500" height="500"

If you see 0 (for example) there, there is something fishy in your sketch. Or in a given version of Processing (which version do you use?), but I doubt it.
Re: preview in browser
Reply #4 - Nov 6th, 2008, 4:38pm
 
Everything is fine on my pc at work..

could be im using a previous version at home.

Ill bring the sketch i have here home and try it.

Thanks
Page Index Toggle Pages: 1