It should be that all functions that create HTML and start like this:
function jmol....(script, label, id, title)
that is, that users use to create buttons and such, NEVER use any appletID.
You are supposed to set the target first with jmolSetTarget() and then
execute those.
Functions like
function _jmol....
which are not documented for user use and are called by other Jmol.js
functions may or may not accept the target text or create their own. I'm
pretty sure there's a reason in each case why they do or don't, so please
don't do anything with those. Ain't broke; don't fix it! :)
I haven't looked at the widget JS to see if it's consistent with this, but
if not it needs to be.
So, Jonathan, before you change anything, send us some suggested revisions
so we can think through if there was some reason it was that way. (Probably
was!)
Bob
2010/7/7 Angel Herráez <[email protected]>
> El 7 Jul 2010 a las 10:42, Robert Hanson escribió:
>
> > You mean in Jmol.js?
>
> Yes, that's Jonathan's idea, changing Jmol.js
>
> I suspect there must be some reason why we have the two methods: use
> appletID parameter for jmolScript() and similar ones, or use
> jmolSetTarget() for the others, but Jonathan sees no reason why it
> cannot be done.
> I also think that a single method would make life easier (I keep
> forgetting about setTarget)
>
>
>
>
> ------------------------------------------------------------------------------
> 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-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>
--
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-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-developers