From: Robert H. <ha...@st...> - 2013-05-30 15:54:12
|
This is why we use JSmolControls.js and JSmolApi.js Jmol.href(jmolApplet0, "whatever script", "testing here") On Thu, May 30, 2013 at 10:31 AM, Otis Rothenberger <osr...@ch...>wrote: > Henry, > > In similar contexts, I've had success with the following: > > \x22HOPELESSLYnestedSTUFF\x22 > > I use it a lot, and I must admit I worry a bit about cross browser > compatibility. So far so good, however. > > Otis > > -- > Otis Rothenberger > ot...@ch... > http://chemagic.com > > > > > On May 30, 2013, at 11:15 AM, Rzepa, Henry S wrote: > > > I am trying to include the following in a JSMol display (latest version) > > > > <a href="javascript:Jmol.script(jmolApplet0,'background image > scheme.jpg;')">scheme</a> > > > > It seems that the image, scheme.jpg HAS to be quoted, normally as for > example "scheme.jpg" in order to display. > > Thus, on its own, > > > > Jmol.script(jmolApplet0,'background image "scheme.jpg";') > > > > works fine and loads the scheme. Miss out the ", as > Jmol.script(jmolApplet0,'background image scheme.jpg;') and it does not > display. > > > > But now the quoting is needed inside a href, which is itself quoted > using " (and ' is already used for the JSmol script). I have tried > escaping the quotes, as ″scheme.jpg′ but that does not do the > trick. > > > > Can anyone help with the above line? Apart from ' and " is there a > third character that can be used for quoting (in this case the file name?) > > > > > > > > > ------------------------------------------------------------------------------ > > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > > Get 100% visibility into your production application - at no cost. > > Code-level diagnostics for performance bottlenecks with <2% overhead > > Download for free and get started troubleshooting in minutes. > > http://p.sf.net/sfu/appdyn_d2d_ap1 > > _______________________________________________ > > Jmol-users mailing list > > Jmo...@li... > > https://lists.sourceforge.net/lists/listinfo/jmol-users > > > > > > ------------------------------------------------------------------------------ > Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET > Get 100% visibility into your production application - at no cost. > Code-level diagnostics for performance bottlenecks with <2% overhead > Download for free and get started troubleshooting in minutes. > http://p.sf.net/sfu/appdyn_d2d_ap1 > _______________________________________________ > Jmol-users mailing list > Jmo...@li... > https://lists.sourceforge.net/lists/listinfo/jmol-users > -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, Chemistry Department 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 |