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


On Tue, Jul 20, 2010 at 12:38 PM, Pshemak Maslak <[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://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
>



-- 
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

Reply via email to