No being too happy with having to code up individual pages for each document which would be JAVA DjVu enabled (especially to just change the documents name), I went to the library and checked out a small JavaScript book. A little reading, some surfing the net for script examples, some experimenting and I have a basic single page pick list for using with the JAVA DjVu Viewer.

It doesn't require CGI, PHP, PERL or a server to be involved. It works entirely within the browser on a local system which has both JavaScript & JAVA enabled. It works by calling/opening a "child" window as the DjVu window while retaining the pick list in the original browser window. A second click/selection just changes the document in the "child" window.

The basic script is reproduced below as we have tested on our desktop. Some things (code base path, document directory if needed) will need to change in the applet coding for different environments, but once set up the only things you will probably change are the document links.

-------------------------------------------------------------------------

<script language="JavaScript">
<!--

var quote='"'

function openWindow(doc, name)
{
myWin = window.open("","nCt", "left=0,status=no,toolbar=no,menubar=no,scrollbars=no");
myWin.document.write("<head><title>JAVADjVu Viewer</title></head>");

myWin.document.writeln ("<applet ");

myWin.document.writeln ("style="+quote+"width:100%;height:100%;"+quote+" code="+quote+"DjVuApplet.class"+quote+" codebase="+quote+"c:/atest/web"+quote+" archive="+quote+"javadjvu.jar"+quote+">");

myWin.document.writeln ("<param name="+quote+"data"+quote+" value="+quote+doc+quote+">");

myWin.document.writeln("<param name="+quote+"cache_archive"+quote+" value="+quote+"javadjvu.jar"+quote+">");

myWin.document.write("</applet>");

myWin.document.write ("</BODY></HTML>");
myWin.document.close()
}

function closeIt(){
if (!myWin.closed)
myWin.self.close()
}
//-->
</script>
<a href="javascript:void()"
onClick="closeIt()"
<b>Close document window</b></a><BR><BR>
<a href="javascript:void()"
onClick="openWindow('Special-Study.djvu','1st one')"
<b>Special-Study</b></a> Indepth study of why the Technically inclined don't think like end users.<BR><BR>
<a href="javascript:void()"
onClick="openWindow('Results-Jan-2005.djvu','2nd one')"
<b>Web Study Jan 2005</b></a> Summation of attempts to learn 4 or more different aspects of Web Delivery techniques.<BR><BR>

-----------------------------------------------------------------------

I went ahead and posted this for others to use/enhance/critique/etc...

Not bad for someone who is an always newbie.

Senior Citizen