FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   <param>
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: <param>  (Read 1879 times)
Dan

WWW
<param>
« on: Nov 19th, 2002, 6:30pm »

Just a quicky... is it possible to access parameters passed from the <param> tag?
 
Cheers
 
fry


WWW
Re: <param>
« Reply #1 on: Nov 19th, 2002, 7:30pm »

should work the same as any other applet (using getParameter() inside your code).
 
only problem is that while running inside the development environment, there is nowhere to get the params from.. so, you either have to write some code around that (because getParameter will probably return null), or only expect to have it work after you've exported (have two different versions of that few lines of code, and comment one or the other out for whether you're running inside the environment or exporting)
 
a better method for this might be something useful to add... ie. a properties file for running the thing by itself, which later is used to construct the PARAM tags for your applet.. hmm..
 
Dan

WWW
Re: <param>
« Reply #2 on: Nov 19th, 2002, 7:51pm »

ok, thanks.
 
Pages: 1 

« Previous topic | Next topic »