On Tue, Mar 18, 2014 at 2:05 PM, Dale Tronrud <de...@daletronrud.com> wrote:
> Thanks,> load ="8tln" //does not work
> >
> > So I assume you need
> > <a href='javascript:Jmol.script(jmolApplet0,"isosurface ID DenMap sigma
> > 1 within 7.0 {26:E} color blue "=8tln" mesh nofill")'>Load Map
> from
> > EDS</a>
>
> This definitely does not work on Firefox. I suspect that the html
> parser is substituting a double quote for the " before javascript
> gets the string and the nested quotes cause a syntax error. I can get
> it to work by escaping the inner quotes (\"). This only works if the
> outermost quotes are single quotes.
>
>
Right -- flip your nesting of ' and " there. Jmol needs to see both of
them.
> Dale Tronrud
> >
> > And always you have trouble with nested quotes it is easier to get one
> part
> > out like
> >
> > <script>
> > function myScript() {
> > Jmol.script(jmolApplet0, 'isosurface ID DenMap sigma 1 within 7.0
> {26:E}
> > color blue "=8tln" mesh nofill');
> > }
> > </script>
> > <a href='javascript:void(myScript())'>Load Map from
> > EDS</a>
> >
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Learn Graph Databases - Download FREE O'Reilly Book
> > "Graph Databases" is the definitive new guide to graph databases and
> their
> > applications. Written by three acclaimed leaders in the field,
> > this first edition is now available. Download your free book today!
> > http://p.sf.net/sfu/13534_NeoTech
> > _______________________________________________
> > Jmol-users mailing list
> > Jmol-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/jmol-users
> >
>
>
> ------------------------------------------------------------------------------
> Learn Graph Databases - Download FREE O'Reilly Book
> "Graph Databases" is the definitive new guide to graph databases and their
> applications. Written by three acclaimed leaders in the field,
> this first edition is now available. Download your free book today!
> http://p.sf.net/sfu/13534_NeoTech
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
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
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users