JSmartGrid™ & Internet

In this document, we demonstrate how the JSmartGrid™ can be used as an applet on a Web page. This example, which can be downloaded from the support page, assumes that you put the HTML page and the ColumnDragGridDemo.jar in the same directory.

The applet launches the column permutation example in the JSmartGrid™ Tutorial.
The HTML page checks for the Java plugin version of your browser and connects to the Sun Microsystems web site to download the Java™ 2 platform JRE, if required.

The converter developed by Sun Microsystems is available at http://java.sun.com/products/plugin/1.3/converter.html. To write an html page such as the one below, run the converter and obtain the html page which is shown at the end of the document.

The html source code is :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<html>

<head>
<title>ColumnDragGridDemo</title>
</head>

<body>
<h1>ColumnDragGridDemo</h1>

<APPLET
WIDTH=400 HEIGHT=300
ARCHIVE=ColumnDragGridDemo.jar
CODE=example101.ColumnDragGridDemo
CODEBASE=".">
</APPLET>

</body>
</html>

 

The converted html code is :

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">

<html>

<head>
<title>ColumnDragGridDemo</title>
</head>

<body>
<h1>ColumnDragGridDemo</h1>

<!--"CONVERTED_APPLET"-->
<!-- CONVERTER VERSION 1.3 -->
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
WIDTH = 400 HEIGHT = 300 codebase="http://java.sun.com/products/plugin/1.3/jinstall-13-win32.cab#Version=1,3,0,0">
<PARAM NAME = CODE VALUE = example101.ColumnDragGridDemo >
<PARAM NAME = CODEBASE VALUE = "." >
<PARAM NAME = ARCHIVE VALUE = ColumnDragGridDemo.jar ><PARAM NAME="type" VALUE="application/x-java-applet;version=1.3">
<PARAM NAME="scriptable" VALUE="false">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.3" CODE = example101.ColumnDragGridDemo CODEBASE = "." ARCHIVE = ColumnDragGridDemo.jar WIDTH = 400 HEIGHT = 300 scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3/plugin-install.html"><NOEMBED></COMMENT>
</NOEMBED></EMBED>
</OBJECT>
<!--
<APPLET CODE = example101.ColumnDragGridDemo CODEBASE = "." ARCHIVE = ColumnDragGridDemo.jar WIDTH = 400 HEIGHT = 300>


</APPLET>
-->
<!--"END_CONVERTED_APPLET"-->


</body>
</html>