On 7/22/2010 7:32 PM, Robert Hanson wrote:
Jmol and JavaScript have the same quotation mark rules -- '...' or
"..." '..."...' is ok, "...'...." is ok, '...\'....' or "...\"..."
are ok.
In HTML tag attributes, you can't use \' or \".
I strongly recommend going to 12.0 despite the fact that you will need
two files. Is there some particular reason you have to have only one file?
Bob
Thanks for clarification.
I have just started using 11.8 and the development curve of Jmol
overtook my learning curve of it. Right now fewer files mean fewer
opportunities for errors.
I am going to use 12.0 (and beyond); just need more time to get some basics.
Thanks,
PM
On Wed, Jul 21, 2010 at 7:55 AM, Pshemak Maslak <[email protected]
<mailto:[email protected]>> wrote:
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://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
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users