Bob,

The image file (gif) loads directly to any page using an image tag with the Resolver's url as the image src. Although it's dynamically generated from the query string, ii's simply a gif image. Anyone can load it. No problem.

With the JME file, I'm still on an embedded JME Editor train of thought. Since the Resolver returns a JME file that retains the stereochemistry of the submitted Jmol model, it can be input into JME to give a correct wedge bond drawaing of the model in the Jmol window. JME will not read a served file, so Jmol has to call the Resolver for the JME file and then give it to JME Editor via JavaScript.

Maybe I just answered my own question! Is the above legal with the signed applet? If you're using the signed applet, can you use AJAX to put the Resolver returned JME string into a JavaScript variable?


Quick unrelated question: Is the following the correct syntax for swapping in a new set of partial charges??

var x = Array(partialChargesAsCommaDelimetdStrings)
{*).partialCharge = {*}.partialCharge.x


Otis

Otis Rothenberger
chemagic.com


On 9/4/2010 8:37 PM, Robert Hanson wrote:


On Fri, Sep 3, 2010 at 3:02 PM, Otis Rothenberger <osrot...@chemagic.com <mailto:osrot...@chemagic.com>> wrote:

    This is an outgrowth of the gif image note, but its a new subject.
    So new chain...

    Here's a true Jmol depict - i.e. Jmol model kit mode 3D --> JME
    stereo 2D

    http://chemagic.com/web_molecules/script_page_large.aspx

    Click The Molecular Editor link; Click the Draw link. Click the
    Depict link;

    The appropriate query to NIH Resolver is:

    http://cactus.nci.nih.gov/chemical/structure/CCC(C)CC/file?format=jme
    <http://cactus.nci.nih.gov/chemical/structure/CCC%28C%29CC/file?format=jme>

    Bob, is this one worth building into Jmol like the Resolver
    molfile load? If it's built into Jmol, them users embedding JME
    should be able to use it with the signed Jmol applet sans server
    side programming.


You lost me there...

    Unless JME has a signed applet version, I don't think you can pass
    the Resolver data directly to JME. If the JME file comes into a
    Jmol/JME combined page via Jmol, my guess is that it's legal for
    the signed Jmol applet to pass the data to JME via JavaScript???


Are you interested in processing the PNG/JPG image coming from NIH or just the JME string?


    Otis

-- Otis Rothenberger
    chemagic.com  <http://chemagic.com>


    
------------------------------------------------------------------------------
    This SF.net Dev2Dev email is sponsored by:

    Show off your parallel programming skills.
    Enter the Intel(R) Threading Challenge 2010.
    http://p.sf.net/sfu/intel-thread-sfd
    _______________________________________________
    Jmol-users mailing list
    Jmol-users@lists.sourceforge.net
    <mailto:Jmol-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/jmol-users




--
Robert M. Hanson
Professor of Chemistry
St. Olaf College
1520 St. Olaf Ave.
Northfield, MN 55057
http://www.stolaf.edu/people/hansonr
phone: 507-786-3107


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 Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd


_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------
This SF.net Dev2Dev email is sponsored by:

Show off your parallel programming skills.
Enter the Intel(R) Threading Challenge 2010.
http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to