The TTAAPPLET tag

In HTML, you use the APPLET tag to include applets in HTML pages. However, in Tarantella themes, a special tag called TTAAPPLET is used instead.

When a page containing the TTAAPPLET tag is requested, the ttawebtop.cgi cgi-bin program replaces the TTAAPPLET with an APPLET tag. This automatically generated APPLET tag contains all the essential information needed to display the application. This information includes:

Attributes

Any attributes you specify for the TTAAPPLET tag appear for the automatically generated APPLET tag.

Also, the archive attribute lets you specify a Java archive. Usually you should use the value asad here.

You can include a terminal emulator applet in an HTML page in the following way (note that you must supply other terminal emulator applet parameters such as the name of the application and the ASAD port number):

<ttaapplet
    code="com/tarantella/tta/client/applets/TDE.class"
    name="Tarantella Terminal Emulator">

ttawebtop.cgi replaces the TTAAPPLET tag with an APPLET tag with the name Tarantella Terminal Emulator, using the code found in install_dir/var/docroot/java/com/tarantella/tta/client/applets/TDE.class.

%%CALCWIDTH%% and %%CALCHEIGHT%%

You can use the placeholders %%CALCWIDTH%% and %%CALCHEIGHT%% to let Tarantella decide the correct size for the webtop tray applet.

You can use these placeholders in a TTAAPPLET element like this:

<ttaapplet code="SmartIconHost" 
              width="%%CALCWIDTH%%"
              height="%%CALCHEIGHT%%">

Tarantella replaces %%CALCWIDTH%% and %%CALCHEIGHT%% with the optimum width and height for the webtop tray applet, taking into account that applet's settings for the width and height of links, margins and link layout.

Note To allow Tarantella to calculate %%CALCWIDTH%% and %%CALCHEIGHT%% correctly, you must use a special format to specify values for certain applet parameters. If you need to use a special format for a particular applet parameter, its parameter description will tell you so.

Related topics
  • Login applet
  • Framework applet
  • Webtop tray applet
  • Webtop script applet
  • Print applet
  • Terminal emulator applet
  • X emulator applet