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

Reply via email to