Eric, make sure you have both newer JSmol.min.js and j2s directory.

On Mon, Apr 14, 2014 at 7:30 PM, Robert Hanson <hans...@stolaf.edu> wrote:

> Let's see what we can find here:
>
>
> jmolApplet0._applet.viewer.global.disablePopupMenu
> true
>
> so something happened there. That flag is set in viewer:
>
>   private Object getPopupMenu() {
>     if (jmolpopup == null) {
>       jmolpopup = (allowScripting ?
> apiPlatform.getMenuPopup(menuStructure, 'j') : null);
>       if (jmolpopup == null) {
>         g.disablePopupMenu = true;
>         return null;
>       }
>     }
>     return jmolpopup.jpiGetMenuAsObject();
>   }
>
>  The way to debug this, Eric, is:
>
> 1) replace JSmol.min.js with js/JSmol.full.js
> 2) replace j2s/core/core.z.js with js/core.js
>
> Then you can go in and debug it and it will look like something
> reasonable. The error is being thrown in a method you will find in core.js:
>
>
> Clazz_overrideMethod (c$, "getMenuPopup",
> function (menuStructure, type) {
> var c = (type == 'j' ? "awtjs2d.JmolJSPopup" : "awtjs2d.JSModelKitPopup");
> var jmolpopup = J.api.Interface.getOption (c);
> try {
> if (jmolpopup != null) jmolpopup.jpiInitialize (this.vwr, menuStructure);
> } catch (e) {
> if (Clazz_exceptionOf (e, Exception)) {
> c = "Exception creating " + c + ":" + e;
> System.out.println (c);
> return null;
> } else {
> throw e;
> }
> }
> return jmolpopup;
> }, "~S,~S");
>
>
>
> I'm pretty surprised it didn't print anything. Use
>
> jmolApplet0._showInfo(true)
>
> to see System.out.println -- the old "Java console"
>
>
>
>
>
>
> On Mon, Apr 14, 2014 at 7:14 PM, Robert Hanson <hans...@stolaf.edu> wrote:
>
>> Anyway, that's still quite old. We are up to 14.0.13.
>>
>>
>> On Mon, Apr 14, 2014 at 7:13 PM, Robert Hanson <hans...@stolaf.edu>wrote:
>>
>>> Right, sorry. Looked at the wrong line:
>>>
>>> Jmol Version: 14.0.4 2014-01-05 16:16:
>>> java.vendor: j2s
>>> java.version: JSmol 13.3.9 11/23/2013 10:51:10 PM
>>>
>>>
>>>
>>>
>>> On Mon, Apr 14, 2014 at 6:56 PM, Eric Martz 
>>> <ema...@microbio.umass.edu>wrote:
>>>
>>>> Hi, Bob,
>>>>
>>>> As stated below, I am already using 14.0.4 in the released version of
>>>> FirstGlance 1.98 (firstglance.jmol.org, uncheck the Java checkbox and
>>>> enter a PDB code).
>>>>
>>>> Also when I use 14.0.13 (running in Firefox from local files) I can't
>>>> get the menu to open.
>>>>
>>>> Regards, Eric
>>>>
>>>> At 4/14/14, Robert Hanson wrote:
>>>> >Try upgrading to Jmol 14.0.
>>>> >
>>>> >
>>>> >On Sun, Apr 13, 2014 at 5:06 PM, Eric Martz
>>>> ><<mailto:ema...@microbio.umass.edu>ema...@microbio.umass.edu> wrote:
>>>> >I cannot seem to get the JSmol menu to open (14.0.4):
>>>> >
>>>> ><http://firstglance.jmol.org/fg.htm?mol=1d66&use=html5>
>>>> http://firstglance.jmol.org/fg.htm?mol=1d66&use=html5
>>>> >
>>>> >For comparison, the menu opens just fine with the Java applet:
>>>> >
>>>> ><http://firstglance.jmol.org/fg.htm?mol=1d66>
>>>> http://firstglance.jmol.org/fg.htm?mol=1d66
>>>> >
>>>> >I have the same problem with JSmol 14.0.13 in local testing.
>>>> >
>>>> >Is JSmol too close to the edge of the window?
>>>> >
>>>> >Any suggestions?
>>>> >
>>>> >Eric
>>>> >
>>>> >
>>>> >
>>>>
>>>> >------------------------------------------------------------------------------
>>>> >Put Bad Developers to Shame
>>>> >Dominate Development with Jenkins Continuous Integration
>>>> >Continuously Automate Build, Test & Deployment
>>>> >Start a new project now. Try Jenkins in the cloud.
>>>> ><http://p.sf.net/sfu/13600_Cloudbees>
>>>> http://p.sf.net/sfu/13600_Cloudbees
>>>> >_______________________________________________
>>>> >Jmol-users mailing list
>>>> ><mailto:Jmol-users@lists.sourceforge.net>
>>>> Jmol-users@lists.sourceforge.net
>>>> >https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>> >
>>>> >
>>>> >
>>>> >
>>>> >--
>>>> >Robert M. Hanson
>>>> >Larson-Anderson Professor of Chemistry
>>>> >St. Olaf College
>>>> >Northfield, MN
>>>> ><http://www.stolaf.edu/people/hansonr>
>>>> 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
>>>> >
>>>>
>>>> >------------------------------------------------------------------------------
>>>> >Learn Graph Databases - Download FREE O'Reilly Book
>>>> >"Graph Databases" is the definitive new guide to graph databases and
>>>> their
>>>> >applications. Written by three acclaimed leaders in the field,
>>>> >this first edition is now available. Download your free book today!
>>>> >http://p.sf.net/sfu/NeoTech
>>>> >_______________________________________________
>>>> >Jmol-users mailing list
>>>> >Jmol-users@lists.sourceforge.net
>>>> >https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Learn Graph Databases - Download FREE O'Reilly Book
>>>> "Graph Databases" is the definitive new guide to graph databases and
>>>> their
>>>> applications. Written by three acclaimed leaders in the field,
>>>> this first edition is now available. Download your free book today!
>>>> http://p.sf.net/sfu/NeoTech
>>>> _______________________________________________
>>>> Jmol-users mailing list
>>>> Jmol-users@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/jmol-users
>>>>
>>>
>>>
>>>
>>> --
>>> Robert M. Hanson
>>> Larson-Anderson Professor 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
>>>
>>>
>>
>>
>> --
>> Robert M. Hanson
>> Larson-Anderson Professor 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
>>
>>
>
>
> --
> Robert M. Hanson
> Larson-Anderson Professor 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
>
>


-- 
Robert M. Hanson
Larson-Anderson Professor 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
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to