Login  Register

Re: Applet and startup macros

Posted by Wayne Rasband on Oct 17, 2009; 1:47am
URL: http://imagej.273.s1.nabble.com/Applet-and-startup-macros-tp3690715p3690716.html

On Oct 16, 2009, at 6:57 PM, Seth M Hays wrote:

> I am currently attempting to create a client side menubar from a
> centralized IJ applet that can be accessed via the web.  This  
> menubar is
> called with an macro in the StartupMacros.txt file.  When I start  
> ImageJ
> from the client computer I have no difficulty, However if I attempt to
> start Image J as an applet on the web I can only run the plug-in.  No
> StartupMacro's run over the web.  How can I get Image J to run the  
> start
> up macro's over the web?

When running as an applet, ImageJ looks for the StartupMacros file in  
the "document base", the directory on the server that contains the  
HTML page with the applet tag. The unsigned applet on the ImageJ  
website loads its StartupMacros from

     http://rsb.info.nih.gov/ij/applet/StartupMacros.txt

You can open this file by pasting this URL into the File>Import>URL  
dialog box. You can also open it using this macro:

     open("http://rsb.info.nih.gov/ij/applet/StartupMacros.txt");

-wayne