yeah, it was intense. Quite the challenge. I have some pretty good 
tools, though, for organizing JavaScript pages. So mostly it's just been 
slugging away. But I'm fairly pleased with the slimmed down look and 
coding. Undoubtedly there will be some browser issues, but the signed 
applet is just fantastic.

There were a lot of Jmol adaptations as well to make this go. That 
included some very nice new commands such as

show info
show structure
show chain
show atoms
show group
show sequence

and a number of others. One of the improvements is that comments 
starting with # are sent to the message queue when debugscript is set 
true. That makes for a slick way of interacting with callbacks. Eric 
Martz and Tim Driscoll set that up for Chime, and I just adapted Jmol to 
work with it.

Also,  in doing this I discovered a terrific way to embed Jmol scripts 
in web pages as <!-- .... --> HTML comment tags. You can see that work 
at http://chemapps.stolaf.edu/quaternions/PISEMA/pisema.htm (look at the 
HTML source code, near the end.)   The function that does that is just this:


function getScript(name) {
    try {
        return eval(name)
    } catch(e) {
        var tag = "-- JMOL SCRIPT " + name + " --";
        var script = document.body.innerHTML.split(tag)[1];
        if (!script) {
            alert("missing embedded Jmol script " + tag)
            return ""
        }
    }
    return script;
}




We might want to include processing code for that in Jmol.js. It's so 
convenient to put lengthy scripts right in the HTML and not have to 
worry about SPT files. That was critical for getting the "live snapshot" 
Email business working so that only one file needed to be sent.

I'm really hoping people will go for this. I want to get it moved to a 
SourceForge site, but I don't have time right now to set it up. Any help 
on doing that would be great. It needs to be its own project, not a 
subproject of Jmol. Any volunteers?

Bob



Angel Herraez wrote:

>El 17 Jul 2008 a las 10:24, Bob Hanson escribió:
>  
>
>>Jmol Protein Explorer is ready for testing and may be considered in 
>>"beta" state.
>>    
>>
>
>Wow, Bob!
>
>I know a bit about PE internal complexity, so that must have been a 
>huge effort. 
>Congratulations!
>
>
>
>
>-------------------------------------------------------------------------
>This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
>Build the coolest Linux based applications with Moblin SDK & win great prizes
>Grand prize is a trip for two to an Open Source event anywhere in the world
>http://moblin-contest.org/redirect.php?banner_id=100&url=/
>_______________________________________________
>Jmol-users mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/jmol-users
>  
>


-- 
Robert M. Hanson
Professor of Chemistry
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



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to