All,
Again, thanks to Otis for answering my previous question. I have another
issue...
I am attempting to create a simple exercise for our first year chemistry
students to create a page that displays molecule with JSmol. I have created a
pared down page from the test2 page and I give part of it below. I'm attempting
to restrict the exercise to using only HTM5/JavaScript and not touching Java
and I thought I had removed all reference to Java. The file works fine on my
own computer (in Firefox and IE and now in Chrome with Otis' workaround) but
when I attempt to open it on the computers available to students I get an
'Application Error' alert saying 'ClassNotFoundException' that appears to refer
to JmolApplet.class. The JSmol window seems to do something as it's black
whenthe page is loading but then shows a pale grey outline with a file icon and
red exclamation mark in the top right hand corner of the JSmol window. I'm not
entirely sure what differences there are between my computer and those
available to students but it seems there is something significant. I am
confused as I thought I had stripped out any reference to Java so what have I
done wrong?
As ever, many thanks for any pointers as to what's going on, and I appreciate
this may be a bit of an open ended question with the unknowns regarding what
applications are available.
Anthony
<HTML>
<HEAD>
<TITLE>Jmol with Jmol JavaScript library</TITLE>
<SCRIPT TYPE="text/javascript" SRC="JSmol.min.js"></SCRIPT>
<SCRIPT TYPE ="text/javascript">
jmol_isReady = function(applet)
{
Jmol._getElement(applet, "appletdiv").style.border="1px solid green"
}
var Info01 =
{
<!DOCTYPE html>
debug: false, // Disable/display information useful
for debugging
use: "HTML5", // JAVA HTML5 WEBGL are all options
j2sPath: "./j2s", // This must point to where the j2s
directory is located
addSelectionOptions: true, // Display, below the Jmol object, a
menu with options for loading structures from public databases
disableJ2SLoadMonitor: true, // Disable/display messages in a
single coloured line at bottom-left of the page while code loads
disableInitialConsole: true, // Disable/display messages
('console') in the Jmol panel while the Jmol object is initially being built
allowJavaScript: true, // Enable/disable JavaScript scripts
width: 350,
height: 350,
color: "0xFFFFFF",
src: "molecules/caffeine.mol",
readyFunction: jmol_isReady,
}
</SCRIPT>
</HEAD>
<BODY>
<H1>JSmol Display of Molecules!</H1>
<P>Here Jmol is displaying a number of different molecules on a page using the
Jmol <I>JavaScript</I> library.</P>
<TABLE WIDTH="1000" CELLPADDING="10">
<TR>
<TD VALIGN="center">
<SCRIPT TYPE="text/javascript">
Jmol.getApplet("molecule01", Info01);
</SCRIPT>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>
C. Anthony Lewis
Petroleum & Environmental Geochemistry Group & Centre for Chemical Sciences,
School of Geography, Earth and Environmental Sciences,
University of Plymouth,
Plymouth, Devon PL4 8AA, U.K.
tel: +44 (0)1752 584554
email: cale...@plymouth.ac.uk<mailto:cale...@plymouth.ac.uk>
web: http://www.pegg.org.uk<http://www.pegg.org.uk/>
http://www.plymouth.ac.uk/chemistry
________________________________
[http://www.plymouth.ac.uk/images/email_footer.gif]<http://www.plymouth.ac.uk/worldclass>
This email and any files with it are confidential and intended solely for the
use of the recipient to whom it is addressed. If you are not the intended
recipient then copying, distribution or other use of the information contained
is strictly prohibited and you should not rely on it. If you have received this
email in error please let the sender know immediately and delete it from your
system(s). Internet emails are not necessarily secure. While we take every
care, Plymouth University accepts no responsibility for viruses and it is your
responsibility to scan emails and their attachments. Plymouth University does
not accept responsibility for any changes made after it was sent. Nothing in
this email or its attachments constitutes an order for goods or services unless
accompanied by an official order form.
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users