Hi, all this time I've been using the Jmol application from the command line. However I now have to use it in a web page.
I can place the applet in a HTML page pretty easily. However my situation is a little more involved and I was wondering if anybody could provide any hints as to how to solve this: I have a PHP page that will pull a PDB file and SD file from a database. So both the structures are in the form of strings. What I'd like to do is generate a link on the PHP page that when clicked, brings up a window with Jmol showing the PDB & SDF structures simultaneously (they are docked ligand and receptor so the coordinate system is the same). So there are a number of issues: * Since Jmol cannot show multiple structures, I need to convert my SDF to PDB and concatenate it to the protein PDB. Is this correct? * The PHP page needs to write out a HTML page that contains the code for the applet. But ordinarily I cannot write a file to disk from my PHP page. * How do I specify that Jmol should load the structures - which are in a string. Do I need to write out a temporary file? I have a feeling that Javascript comes in somewhere (!), but never having done this, it's not clear as to how I attack this problem (at least in an elegant/efficient manner) Any pointers would be appreciated Thanks, ------------------------------------------------------------------- Rajarshi Guha <[EMAIL PROTECTED]> GPG Fingerprint: 0CCA 8EE2 2EEB 25E2 AB04 06F7 1BB9 E634 9B87 56EE ------------------------------------------------------------------- Q: What do you get when you cross a mosquito with a mountain climber? A: Nothing. You can't cross a vector with a scaler. ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users