Specifying applet parameters

Top  Previous  Next

All applet parameters may be defined in sections of the HTML code and are used to control both the behavior and look and feel of AnyClient Enterprise. The default applet HTML code for AnyClient Enterprise is provided below. These are the minimum applet parameters that must be used in order to successfully load the applet and SHOULD NOT be removed or modified.

 

Default HTML Code

 

<object width="800" height="600" classid="clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA" codebase="https://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=6,0,0,0">

   <param name="code" value="com.jscape.ftpapplet.FtpApplet.class">

   <param name="archive" value="anyclient-enterprise.jar">

   <param name="scriptable" value="false">

   <comment>

 <embed

           type="application/x-java-applet;version=1.5" \

           code="com.jscape.ftpapplet.FtpApplet.class" \

           archive="anyclient-enterprise.jar" \

           name="anyclient-enterprise" \

           width="800" \

           height="600" \

             scriptable="false" \

             pluginspage = "http://java.sun.com/products/plugin/index.html#download">

             <noembed>          

           </noembed>

 </embed>

   </comment>

</object>

 

Adding applet parameters

 

You may add applet parameters to the default HTML code to control the behavior and look and feel of the applet. You will find these parameters discussed in other topics included with this documentation.

 

In order for parameters to be recognized by all browsers they must be defined in two places within the HTML code. The first place is by adding a <param> tag and the second is to define a name/value pair in the <embed> tag. Notice that a terminating \ must be added when adding parameters to the <embed> tag where parameters span multiple lines. An updated version of the default applet HTML code which contains hostname and username parameters has been provided to illustrate this. Additional parameters may be added in a similar manner.

 

Example

 

<object width="800" height="600" classid="clsid:CAFEEFAC-0016-0000-FFFF-ABCDEFFEDCBA" codebase="https://java.sun.com/update/1.6.0/jinstall-6-windows-i586.cab#Version=6,0,0,0">

   <param name="code" value="com.jscape.ftpapplet.FtpApplet.class">

   <param name="archive" value="sftpapplet.jar">

   <param name="scriptable" value="false">

   <param name="hostname" value="ftp.myserver.com">

   <param name="username" value="jsmith">

   <comment>

 <embed

           type="application/x-java-applet;version=1.5" \

           code="com.jscape.ftpapplet.FtpApplet.class" \

           archive="anyclient-enterprise.jar" \

           name="anyclient-enterprise" \

           width="800" \

           height="600" \

             scriptable="false" \

 hostname="ftp.myserver.com" \

 username="jsmith" \

             pluginspage = "http://java.sun.com/products/plugin/index.html#download">

             <noembed>          

           </noembed>

 </embed>

   </comment>

</object>