wiki:ExampleJclic

Examples using JClic applet

Ex1. Applet and activity are Remote

JClic applet and activity are linked from a remote site. Use jclicplugin.js file to launch the applet.

<script
  language="JavaScript" src="http://clic.xtec.net/dist/jclic/jclicplugin.js"     
  type="text/javascript">
</script>
<script language="JavaScript">
  setJarBase('http://clic.xtec.net/dist/jclic'); 
  writePlugin('http://clic.xtec.net/projects/geoclice/jclic/geoclice.jclic.zip', '800', '600');
</script>

Ex 2. files loaded into eXe

*.jar files and activitypack must be uploaded before. Use object tag (tested with firefox browser only)

<object classid="java:JClicApplet"
    type="application/x-java-applet;version=1.3"
    archive="jclicapplet.jar,jclic.jar, activities.jar, utilities.jar,jclicxml.jar, 
             jmfhandlers.jar,intl.jar,qt60.jar ,qt61.jar,soundspi.jar" 
    height="600" width="800">
   <param name="codebase" value="." />
   <param name="activitypack" value="http://clic.xtec.net/projects/geoclice/jclic/geoclice.jclic.zip" />
   <strong>    This browser does not have a Java Plug-in.    <br />    
         <a href="http://java.sun.com/products/plugin/downloads/index.html">      Get the latest Java Plug-in here.    </a>      
   </strong>
</object>