On 7/20/2010 7:27 PM, Robert Hanson wrote:
to draw the isosurface you need to use the isosurface command, not the load command. I think that's the only problem. Note that older isosurfaces had some of the atoms present -- this was removed in the latest version of JVXL, but could be reinserted in principle in CML format. (The JVXL is now in XML format.)Bob
I am using 11.8 to write my jvxl files, so atoms are still in a file, and I want them to be there anyway. My links (through an image map) are supposed to display different structures with their associated surfaces (MO's in this case). I needed to load the files and then display the surfaces.
The quotation-mark issue is now resolved (see below). I am guessing that there is a hierarchy to the quotation marks that has to be followed (I am new to javascript and Jmol).
Thanks for all your help; I still have a lot to learn and it appears that Jmol is being developed faster than I am learning it :-)
PM
On Tue, Jul 20, 2010 at 12:38 PM, Pshemak Maslak <[email protected] <mailto:[email protected]>> wrote:On 7/20/2010 1:24 PM, Angel Herráez wrote: > Pshemak, you have a problem with quotes --at least-- > > href="javascript:jmolScript('load models/allyl-MO-3.jvxl; isosurface "";')" > > the quote after isosurface is closing the quote after href > > You need to escape the quotes: > > href="javascript:jmolScript('load models/allyl-MO-3.jvxl; isosurface > \"\";')" > Thanks. That is what I suspected. But \"\" does not fix the problem; surprisingly \'\' does. > > Sometimes, things get so complicated with quotes that it is not > possible to achieve. Then, you can extract portions, like this: > > <script type="text/javascript"> > var myScript = 'load models/allyl-MO-3.jvxl; isosurface "";' > </script> > > and then > > href="javascript:jmolScript(myScript)" > Good tip. Thanks! PM > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first <http://sprint.com/first> -- http://p.sf.net/sfu/sprint-com-first > _______________________________________________ > Jmol-users mailing list > [email protected] <mailto:[email protected]> > https://lists.sourceforge.net/lists/listinfo/jmol-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first <http://sprint.com/first> -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Jmol-users mailing list [email protected] <mailto:[email protected]> 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 email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ------------------------------------------------------------------------ _______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users
------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________ Jmol-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-users

