Thanks, Putting the equal sign inside the quote helped. I'm still not working but I'll start a new thread on that.
On 03/14/2014 04:37 PM, Angel Herráez wrote: > Dale, try to put the equal inside the quotes, not outside > > load "=8tln" //works > 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. 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