Applet and startup macros

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Applet and startup macros

Seth M Hays
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?

Seth
Reply | Threaded
Open this post in threaded view
|

Re: Applet and startup macros

Wayne Rasband
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