OK, JSmol is now set up to make sure it uses Jmol's version of jQuery, not some later overlaid version, for the menu.
And the CSS looks great! [image: Inline image 1] On Tue, Oct 13, 2015 at 9:27 PM, Robert Hanson <hans...@stolaf.edu> wrote: > I found it. > > *> > $(jmolApplet0._applet.viewer.jmolpopup.popupMenu.container[0]).menu().menu('refresh').show()* > > I don't know exactly what it going on there with the two versions of > jQuery, but if you issue this: > > > *jmolApplet0._applet.viewer.jmolpopup.popupMenu.container = > $(jmolApplet0._applet.viewer.jmolpopup.popupMenu.container[0])* > The menu will then work. This basically rewraps the actual menu DOM > object (.....[0]) in a wrapper for the jQuery 1.6 object, which apparently > is where the menu widget was added. > > OK, I know. > > Eric, you have somehow loaded a second version of jQuery after JSmol's > version. JSmolMenu uses the jQuery object directly. (This is a mistake on > my part.) It should be using JSmol's version of jQuery but instead is using > yours. So the menu widget was not implemented for JSmol. > > I can actually fix that.... > > Bob > > -- Robert M. Hanson Larson-Anderson Professor of Chemistry Chair, Department of Chemistry 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
------------------------------------------------------------------------------
_______________________________________________ Jmol-users mailing list Jmol-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jmol-users