|
Hello all, Happy New Year, Well I was hoping that I could leave this and come back to it in the new year and I would see my error. :( No luck. This should be really simple all I want to do is load a mol file from a SQL database and give it to Jmol. I have had some very good help from Tim (see below) but I don't want to keep pestering him. My current code is as follows: <tr><td>Structure:</td><td colspan="4"> <?php echo '<script type="text/_javascript_">'; echo 'var mol=\'\';'; if ($data['molfile']){ echo ' var mol=\'parma name="loadInline" value="' . preg_replace("/\n|\r/", "|", $data['molfile']) . '" />\';'; } else { echo 'var mol = \'\';'; } echo 'document.write(mol);'; echo 'jmolInitialize("java/jmol");'; echo 'jmolApplet(300);'; echo 'jmolLoadInline(mol);'; echo '</script>'; ?> <br> I did the document.write thing just to check the mol file is there correctly. It looks ok to me but ..... I get a jmol applet on my page but no molecule. Any help would be great. Thank again guys, Paul Benton PS the page is http://metlin.scripps.edu/htdocs-new/metabo_info_cp.php?molid=6 Research Technician Mass Spectrometry o The / o Scripps \ o Research / o Institute Tim, |
------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

