This is some sort of incompatibility with your version of jQuery. The
following message is from jQuery when the user calls up the Jmol popup menu
at your site. It is in the final code where Jmol uses the jQuery method
menu('refresh')
menu.container.hide().menu().menu('refresh')
TypeError: a.children(...).addClass(...).attr(...).children(...).uniqueId
is not a function
When a Jmol menu is called up, js/JSmolMenu.js is loaded (as part of
j2s/core/coremenu.js). This package checks for the following jQuery
components:
jquery.ui.core.js, jquery.ui.widget.js, jquery.ui.mouse.js,
jquery.ui.position.js, jquery.ui.menu.js
and loads a version provided in JSmolMenu.js if any of those are missing.
Observations:
You are using jQuery v1.11.0, which should be fine.
When I downloaded your version of jQuery and use it on my machine, it
worked fine.
When I downloaded your version of JSmol and your version of jQuery, it
worked fine.
So something has gotten messed up somewhere, but I cannot reproduce it.
Please try the page without MathJax enabled and see if that fixes it.
On Tue, Dec 16, 2014 at 6:02 AM, Robert Hanson <hans...@stolaf.edu> wrote:
>
> Yes, very curious. I will look into it immediately.
>
> By the way, thanks for demonstrating this:
>
> $(document).ready(function(){ MathJax.Hub.Queue(loadJmol);});
>
>
>
> On Tue, Dec 16, 2014 at 4:12 AM, João Palhoto Matos <
> joao.palh...@gmail.com> wrote:
>>
>> Hello!
>>
>> I have been trying to integrate some Jmol Sage produced graphics in my
>> web site http://cdi2tp.math.ist.utl.pt .
>>
>> Using JSmol.min.js I right click on the graphic and the Jmol controls
>> appear (see http://cdi2tp.math.ist.utl.pt/texto/4 near the bottom)
>>
>> Using JSmol.min.nojq.js I right click on the graphic and the Jmol
>> controls do not appear (see http://cdi2tp.math.ist.utl.pt/texto/20 1/3
>> from the top)
>>
>> I should expect from what I have read that they should appear in both
>> cases and in the second case without loading jquery twice.
>>
>> Looking at the documentation, code and the source for Sage notebooks
>> have not helped me so far. Sorry in advance if I am overlooking
>> something totally obvious.
>>
>> Best, and thanks for Jmol!
>>
>> --
>> João Palhoto Matos
>> Professor Auxiliar
>> Departamento de Matemática
>> Instituto Superior Técnico
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>>
>> http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
>> _______________________________________________
>> 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
> 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
>
>
--
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
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users