Steps to Create a Web Page Containing an Altia Plug-in

Summary

In order to add an Altia Design to a web page the following steps need to be done:

  1. Use the Altia Design Editor to create the design to be shown.
  2. Create the HTML file that contains the EMBED directive. The EMBED directive contains the design file name, the size of the area to display the Altia design in, any client program that needs to be started, and any files to pre-download.
  3. Make sure your web server supports the Altia MIME type and add it if necessary.

The EMBED Directive

The EMBED directive tells the browser to embed the Altia design into the web page. It has the following syntax:

<EMBED SRC="yourfile.dsn" WIDTH=XXX HEIGHT=XXX CLIENT="yourClient.exe" RTMFILE="yourfile.rtm" DOWN="download" PLUGINSPAGE="http://www.altia.com">

Explanation:

SRC="yourfile.dsn" - This is the design file to download and pass to the Altia Plug-in. It should be a valid Altia design file that has been compressed. The design can be compressed with gzip, zip, compress or pack.

WIDTH=XXX - This tells the browser how wide to make the window that Altia will use to display itself in (usually, this is the width specification in the rtm file).

HEIGHT=XXX - This tells the browser how tall to make the window that Altia will use to display itself in (usually, this is the height specification in the rtm file).

CLIENT="yourClient.exe" - This tells the Plug-in to download and start an Altia client program once Altia has been started. The use of CLIENT is discouraged since a separate client will have to be created for each machine you support and it will increase the download time.

RTMFILE="yourfile.rtm" - This is the rtm file associated with the dsn file. It contains position, color, and magnification attributes for the design.

DOWN="download" - This tells the Plug-in to download this file prior to starting Altia. Altia will normally ask the Plug-in for sound and bitmap files from the server as they are needed. Sometimes the delay to download these files distracts the user. Using the DOWN argument permits the files to be downloaded earlier. You can have as many DOWN arguments as you like.

PLUGINSPAGE="http://www.altia.com" - This indicates where a user can get the Plug-in if he doesn't have it installed on his machine.

Setting the Altia MIME Type on Your Web Server

For a user to be able to access your Altia design across the web that user must have the Altia Plug-in installed and your web server must know about the Altia MIME type used by the Plug-in. Ask your web administrator how to add a new MIME type. On some web servers adding a file called .htaccess in the same directory as the HTML files does the trick. The file should contain the line "AddType application/x-altiadsn dsn". If that doesn't work, try changing the file called "mime.types" in the conf directory of the web server. Add the following lines:

mime type = application/x-altiadsn
action = binary
suffix = .dsn


Back to ProtoPlay Page