(this can be used anywhere a script is used in any of the Jmol.js functions)

On Sun, Aug 7, 2011 at 9:44 AM, Robert Hanson <[email protected]> wrote:

> Angel, is that JavaScript function option mentioned at the Jmol Wiki?
>
> jmolButton([funcName,param1, param2, param3...], text)
>
> runs a predefined JavaScript function  <b>funcName</b> with parameters
> param1, param2, param3 as:
>
> function funcName(btn, obj, target) {
>   // entire array object provided as 2nd parameter;
>   // JavaScript to execute here.
>   var param1 = obj[1]
>   var param2 = obj[2]
>   var param3 = obj[3]
>   ....
> }
>
> Bob
>



-- 
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
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to