Hmm...let me look at this again. I'm now confused. I thought we decided that
jmolColorPicker should take an appletID. It is much more convenient for using
all these functions to just specify the appletID in the call to the function.
I'm still not clear on why one would want to use a separate setTarget function
as you might have to call it multiple times in quick succession if you have
lots of different applets on a page (suppose you have a table of applets each
displaying a different property and menus below the table for controlling
something about each property).
I'll look at the code some more and think more carefully about what the
different functions do. But I'm not proposing to remove the old functionality
just extend it to what I think is a more convenient syntax.
Jonathan
On Jul 7, 2010, at 11:55 AM, Robert Hanson wrote:
> 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 <angel.herr...@uah.es>
> 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
> Jmol-developers@lists.sourceforge.net
> 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
> Jmol-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-developers
Dr. Jonathan H. Gutow
Chemistry Department gu...@uwosh.edu
UW-Oshkosh Office: 920-424-1326
800 Algoma Boulevard FAX:920-424-2042
Oshkosh, WI 54901
http://www.uwosh.edu/facstaff/gutow
------------------------------------------------------------------------------
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
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers