... so let's check that page. Using the page Inspector in Firefox, we see: </body> <ul id="jmolApplet0_popupMenu_top_1" class="jmolPopupMenu" style="display: none; top: -8px; left: 718px;"></ul>
....So there it is. id jmolApplet0_popupMenu_top_1. That's our ticket. I see there that it is display: none. Let's change that. *> $("#jmolApplet0_popupMenu_top_1").show()* Yup, there it is. Looks pretty sickly, though. Serious CSS issues there. Eric, ball's in your court. You have some CSS on that page that is not properly scoped. The page CSS is applying properties to the items in that menu in some what. *> $("#jmolApplet0_popupMenu_top_1").html()*"<li><a>File</a><ul id="jmolApplet0_popupMenu_mnu2_2"><li><a>Load</a><ul id="jmolApplet0_popupMenu_mnu3_3"><li id="jmolApplet0_popupMenu_btn4_4"><a>Open local file</a></li><li id="jmolApplet0_popupMenu_btn5_5"><a>Open URL</a></li><li id="jmolApplet0_popupMenu_btn6_6"><a>Open from PDB</a></li><li id="jmolApplet0_popupMenu_btn7_7"><a>Open script</a></li><li id="btn8"></li><li .... I think JSmol is pretty well scoped. We have had problems in the past that were solved when people took a look a their CSS. One thing you could do would be to knock out pieces of it at a time and see when the menu comes back in. Could be some mouse events that you are trapping as well.... On Tue, Oct 13, 2015 at 8:15 PM, Robert Hanson <hans...@stolaf.edu> wrote: > ... it's enabled: > > > *> jmolApplet0._applet.viewer.menuEnabled()* > true > > ... this is supposed to call up the menu, but it does not. (It does at > http://chemapps.stolaf.edu/jmol/jsmol/jsmol.htm) > > > *> jmolApplet0._applet.viewer.popupMenu(100, 100, 'j')* > ... let's check the Jmol JavaScript console: > > > *> jmolApplet0._showInfo(true)* > ... Hmm, that looks about right. This must be trying to pop up a menu: > > jsmol/j2s/core/coremenu.z.js > -- required by ClazzNode ajax=true async=false > jsmol/j2s/core/coreswing.z.js > -- required by J.popup.JmolGenericPopup ajax=true async=false > > ... and we do *have* a popup menu: > > *> jmolApplet0._applet.viewer.jmolpopup* > > Object { htCheckbox: Object, htMenus: Object, SignedOnly: Object, > menuText: Object, frankList: Array[10], NotPDB: Object, PDBOnly: Object, > FileUnitOnly: Object, FileMolOnly: Object, UnitcellOnly: Object, 51 more… } > > ... so that's good. But where is it??... > > > -- 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