DRAGRI User Manual

go to index>>

Putting the Content into a Web Page




How to write an APPLET Tag

The following explains how to insert an item of DRAGRI content into a web page. See other guides published elsewhere for general information about how to write HTML.

APPLET Tag

To insert an item of DRAGRI content into an HTML file, use APPLET tags:
<APPLET>...</APPLET>

Parameter Tags

You can insert tags between the APPLET tags to provide parameters to the applet.

Provide the name of the parameter after NAME= and the setting value after VALUE=.

NAME VALUE Default
"DIR" If the directory in which the dragri.txt file exists differs from the directory in which this HTML file exists, use this parameter to specify the directory in which the dragri.txt file is saved. Directory containing HTML file
"BGCOLOR" This specifies the background color displayed on the browser while the data is being downloaded. The color is specified as RRGGBB in hexadecimal. FFFFFF (white background)
"MESSAGE" This specifies the character string displayed on the browser while the data is being downloaded. DRAGRI Loading...
"PRELOAD" If you specify TRUE, you can play the movie only after all data has been downloaded.
If you select FALSE, you can play during downloading, although the motion may lack smoothness depending on the transmission rate.
TRUE

Examples of these tags are shown below.

<APPLET CODE="Dragri.class" WIDTH=320 HEIGHT=240
ARCHIVE="dragri.jar" ALT="Please enable Java to see this applet.">
<PARAM NAME="BGCOLOR" VALUE="FF0000">
<PARAM NAME="DIR" VALUE="demo">
<PARAM NAME="MESSAGE" VALUE="Loading... wait a moment...">
<PARAM NAME="PRELOAD" VALUE="TRUE">
Please use a Java-enabled browser to see this applet.
</APPLET>



Changing the locations of index.html and dragri.jar

For multiple items of content to share dragri.jar.

If there are multiple items of DRAGRI content in one site, dragri.jar need only be downloaded once by sharing dragri.jar.

An example of a suitable directory configuration is as shown below. In this example, content1 and content2 contain the content. The two items of content share one dragri.jar and are displayed in index1.html and index2.html.

index1.html and index2.html are HTML files in which the DRAGRI content is embedded.

index1.html
index2.html
jar_files
dragri.jar
content1
dragri.txt
v*.txt
*.jpg
*.gif
*.au
content2
dragri.txt
v*.txt
*.jpg
*.gif
*.au

For the above directory structure, write the following tags for content1 and content2 in index.html:

Tag for content1 (written in index1.html)

<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar">
<PARAM NAME=PRELOAD VALUE="TRUE">
<PARAM NAME=DIR VALUE="content1">
<PARAM NAME=BGCOLOR VALUE="FFFFFF">
<PARAM NAME=MESSAGE VALUE="DRAGRI Loading">
</APPLET>

Tag for content2 (written in index2.html)

<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar">
<PARAM NAME=PRELOAD VALUE="TRUE">
<PARAM NAME=DIR VALUE="content2">
<PARAM NAME=BGCOLOR VALUE="FFFFFF">
<PARAM NAME=MESSAGE VALUE="DRAGRI Loading">
</APPLET>

Putting multiple items of content into one web page

To embed multiple items of DRAGRI content in one HTML file, put different items into different directories and specify dragri.jar and a set of other files in each directory.

An example of a suitable directory structure is shown below. In this example, content1 and content2 contain content. The two items of content share one dragri.jar and both are displayed in index.html at the same time.

index.html
main
dragri.txt
v*.txt
*.jpg
*.gif
*.au
content2
dragri.txt
v*.txt
*.jpg
*.gif
*.au

For the above directory structure, write the following tags for content1 and content2 in index.html:

Tag for content1

<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar">
<PARAM NAME=PRELOAD VALUE="TRUE">
<PARAM NAME=DIR VALUE="content1">
<PARAM NAME=BGCOLOR VALUE="FFFFFF">
<PARAM NAME=MESSAGE VALUE="DRAGRI Loading">
</APPLET>

Tag for content2

<APPLET width="320" height="240" code="Dragri.class" archive="jar_files/dragri.jar">
<PARAM NAME=PRELOAD VALUE="TRUE">
<PARAM NAME=DIR VALUE="content2">
<PARAM NAME=BGCOLOR VALUE="FFFFFF">
<PARAM NAME=MESSAGE VALUE="DRAGRI Loading">
</APPLET>

Putting multiple items of DRAGRI content in one HTML file takes up a large amount of memory. Therefore, it is not recommended.




Precautions when uploading a file

FTP client transfer mode

Be sure to note the following when you upload content to the web server using an FTP client.

  • Transfer all files in binary mode.
  • Turn off the text/binary auto-detect function.
  • In the case of using an FTP client for Macintosh, be sure to upload any file in the RAW mode. Don't use the Mac Binary mode.

Cache

If the same items of content are re-created several times and uploaded to the server, sometimes the applet does not operate or the change is not reflected when you view the content with a browser.

This is because the browser reads an old file remaining in cache in your personal computer or proxy server if the browser requests the file with the same name.

To solve this, take one of the following actions:

  • Press the [Update] button while pressing the [Ctrl] key (Option key for Mac).
  • Clear the browser cache.
  • Rename the directory to be uploaded.

Case-sensitive file names

When the content is uploaded to the server, the file name may be converted from lowercase to uppercase. This conversion may also occur if data is sent and received via a floppy disk or memory card.

Windows makes no distinction between uppercase and lowercase (not case sensitive). However, a URL is case-sensitive. If the characters of the file name change from uppercase to lowercase, the file name is assumed to be different. This means that the specified file cannot be found, and applets cannot be played.

All names of files output by DRAGRI are in lowercase. If the file name is in uppercase, convert it to lowercase.

Name of directory to be uploaded

When you upload a file to the server, do not use Japanese characters (2-byte characters) for the directory name.

You may not be able to access the file from a Web browser.

NTT Advanced Technology Corporation