General comments about where we are now.
I think you will find that
http://chemapps.stolaf.edu/jmol/jsmol/test2.htmis loading considerably
faster than just a few days ago. I'm adding
additional classes to j2s/java/core.z.js to make this happen. At some point
we will want to develop more "packages" that will load groups of methods as
single files. (Probably next summer, when I go on sabbatical.)
Ultimately, I think we will still end up with the full load of 600 or so
.js files. I know that sounds ridiculous, but really what it means is that
there are so many options in Jmol, that defining or implementing all of
them at once is not feasible. Instead, little bits of Jmol will fly over
AJAX as needed no matter what the installation involves. About 300 of those
files will never load and are not needed because their classes are present
in j2s/java/core.z.js, which is loaded initially. Those are basically what
it takes to deliver a simple model of caffeine. But I'm not sure it makes
any sense to selectively remove those from the distribution. (What do
others think?)
Jmol itself already does this modular packaging to a certain extent,
delivering a 1 Mb chunk initially, then smaller chunks. This
class-on-demand scheme with JSmol is better in some ways, as all the
additional files are relatively small, and the core package can be kept
reasonably small. (3 Mb).
I would be very interested in having some help on the following issues:
-- pop-up menu -- how to implement? We can easily get a structured list of
what's on the menu, the question is how to present it in HTML5.
-- console -- how to implement a simple pop-up console, if people feel that
is important.
-- PROMPT command. The simple question/answer one is easy, but Jmol allows
a richer context, with button lists and such. How should we implement this
in JSmol?
Note that internationalization is easy to implement, but I just haven't
gotten around to it.
By the way, I think I've cracked the JavaScript-doesn't-have-threads issue.
The latest rendition of test2.htm illustrates how we can temporarily
suspend a script and restart it at its point of suspension any time later
without "blocking" the browser. This will be useful for all sorts of
things. Right now I'm working on spin, animation, vibration, and hover.
Bob
On Fri, Nov 16, 2012 at 5:40 AM, [email protected] <
[email protected]> wrote:
> I tried first locally to make a simple page in html5 and it works fine.
> When i put it on my server the applet or the canvas doesn't come out. I put
> on server the real same files
>
> http://pinostriccoli.altervista.org/html5/html5.html
>
> I receive 1 error message for javascript Jmol is not defined ...
>
> Locally it works fine. Missing any file?
>
> Pino
>
> ----Messaggio originale----
> Da: [email protected]
> Data: 16/11/2012 5.48
> A: "[email protected]"<[email protected]>
> Ogg: [Jmol-users] JSmol update -- DELAY working
>
> Looks like we might be in business with thread-like behavior in JSmol.
> This is nontrivial, but
>
> http://chemapps.stolaf.edu/jmol/jsmol/test2.htm
>
> now demonstrates that with it's start-up script, allowing for asynchronous
> delays within the script. (The script is suspended until the delay is
> complete, using the JavaScript function setTimeout.)
>
> set antialiasDisplay;background white;
> load caffeine.mol;
> delay 3;
> background yellow;
> delay 0.1;
> background white;
> for (var i = 0; i < 10; i+=0.1){rotate y 1;delay 0.01}
>
> fun!
>
> Bob
>
> --
> Robert M. Hanson
> Larson-Anderson Professor of Chemistry
> Chair, Chemistry Department
> St. Olaf College
> Northfield, MN
> http://www.stolaf.edu/people/hansonr
>
>
> If nature does not answer first what we want,
> it is better to take what answer we get.
>
> -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> Monitor your physical, virtual and cloud infrastructure from a single
> web console. Get in-depth insight into apps, servers, databases, vmware,
> SAP, cloud infrastructure, etc. Download 30-day Free Trial.
> Pricing starts from $795 for 25 servers or applications!
> http://p.sf.net/sfu/zoho_dev2dev_nov
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
If nature does not answer first what we want,
it is better to take what answer we get.
-- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users