Comments below...
> Yes, then I'd have to turn of my parser. And you didn't answer my question
> about output formatting. So I'll repeat it here:
>
> I'm more intereseted weather the syntax of hover's 1st parameter will
> allways be "atom atom_num x y z"?
>
> Sorry, thought I had answered that. It's totally up to the page designer.
They can set the hover to just about anything, and there is a callback that
lets them set it from JavaScript on the fly.
>
> And what about those parameters of measurement?
> "Angle H #2 - C #1 - H #3 : 109.477165", 3, "measurePicked",
> 109.47716522216797
> 1st - a string representation of a mesurement
> 2nd - ?
> 3rd - action name?
> 4th - the angle as a float, right?
>
>
Same deal. That's just the default. Honestly, I wouldn't touch it. It's in
the category of "let the page developer decide what they want."
> I think it would be easier for a developer if thease values would be
> presented in a nice and documented structure, so that they can create
> whatever output they wish from it.
>
>
Pretty sure that's all discussed on the Jmol JsLibrary page referred to
earlier. If not, that's an omission. Take a look at
http://chemapps.stolaf.edu/jmol/docs/#setcallback and
http://jmol.sourceforge.net/jslibrary/#jmolSetCallback
>
> Well, then for very complicated script I see a solution, right in that spt
> file. And why not? It's the same as a js file for the browser.
>
Yes, that's what people do, provided it's a static script that is needed.
But it's not always static. Sometimes the script itself is created
dynamically depending upon events on the page. That's why we have the
option for direct JavaScript function calls instead of actual scripts with
all the controls:
Jmol.jmolButton(jmol, [funcName, param1, params2, ....], "press me")
for example. It think that's basically what you are implementing with your
click events.
In menus, how does jQuery handle use of the up/down arrows?
One thing I can see useful with jQuery is that we often have use for form
resets. Very annoying when a page is reloaded and the controls are not
reset.
Bob
--
Robert M. Hanson
Larson-Anderson Professor of Chemistry
Chair, Chemistry Department
St. Olaf College
Northfield, MN
http://www.stolaf.edu/people/hansonr
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
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Jmol-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers