just define a function and call it rather than doing it all in the tag.

On Sat, Mar 9, 2013 at 11:32 AM, Michael Evans <[email protected]> wrote:

> Nick,
> Try \' rather than " around sp2a. That worked for me (I was working on
> something similar in JSmol yesterday).
>
> Cheers, Mike
>
>
> On Saturday, March 9, 2013, Greeves, Nick wrote:
>
>>  Hi All,
>> I am trying to use lcaoCartoon within a hot spot image map.
>>
>>  The HTML looks like this
>>   <map name="Map" id="Map"><area shape="rect" coords="9,1,328,344"
>> href="javascript:jmolScript('load model/ltf/SF5.spardir;moveto 1.0 { -512
>> 700 -499 116.04};select (sulfur);lcaoCartoon delete create "sp2a";')"
>> alt="SF4" />
>>
>>  This does nothing when clicked. In contrast the same command operating
>> on SF5.spardir in Jmol.jar
>>
>>  select (sulfur);lcaocartoon delete create "sp2a";
>>
>>  works fine.
>>
>>  I suspect this is a problem with nested quotes. Is the " after create
>> being interpreted as the end of the href command?
>>
>>  So the question is, are there any other types of quote I can use or is
>> there another way of doing it?
>>
>>
>>        Best regards
>>  Nick
>>  --
>>  Nick Greeves                            via OS X Mail
>>  Director of Teaching and Learning
>>  Department of Chemistry
>>  University of Liverpool
>>  Donnan and Robert Robinson Laboratories
>>
>>  Crown Street, LIVERPOOL L69 7ZD U.K.
>>  Email address:    [email protected]
>>  WWW Pages:    http://www.chemtube3d.com
>>  Tel:            +44 (0)151-794-3506 (3500 secretary)
>>  Dept Fax:   +44 (0)151-794-3588
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
> --
>
> ---
> Michael Evans
> Department of Chemistry
> University of Illinois, Urbana-Champaign
>
>
>
> ------------------------------------------------------------------------------
> Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
> Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
> endpoint security space. For insight on selecting the right partner to
> tackle endpoint security challenges, access the full report.
> http://p.sf.net/sfu/symantec-dev2dev
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> 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
------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to