jmolScript doesn't return a value - if you wish to execute the script
synchronously (i.e. wait for the script to complete) then use
jmolScriptWait(myScript).
Your 'show orientation' is actually one of the two jmolScriptWait
examples in the documentation:
http://jmol.sourceforge.net/jslibrary/#jmolScriptWait
- N David Brown
2009/6/18 Lars Skjærven <[email protected]>:
> hi! thanks for your quick reply.
> this is just what I need yes. I tried to implement this into my site,
> so I made a javascript function that outputs the orientation to an
> alert-box:
>
> ori = jmolScript("show orientation");
> alert(ori);
>
> However, jmolScript returns "undefined" here. I also tried to set
> targetsuffix to be sure that it is communicating with the same applet.
>
> Any suggestions?
>
> thanks again. :)
>
> Lars
>
> 2009/6/18 Angel Herráez <[email protected]>:
>> Hello Lars
>>
>> The command you need is "show orientation".
>> You will need to parse it or, better, use "show orientaton moveto"
>> (only in recent versions of Jmol)
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Crystal Reports - New Free Runtime and 30 Day Trial
>> Check out the new simplified licensing option that enables unlimited
>> royalty-free distribution of the report engine for externally facing
>> server and web deployment.
>> http://p.sf.net/sfu/businessobjects
>> _______________________________________________
>> Jmol-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>
>
> ------------------------------------------------------------------------------
> Crystal Reports - New Free Runtime and 30 Day Trial
> Check out the new simplified licensing option that enables unlimited
> royalty-free distribution of the report engine for externally facing
> server and web deployment.
> http://p.sf.net/sfu/businessobjects
> _______________________________________________
> Jmol-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users