Switching to the JSmol.min.nojq.js and putting after I load jquery seems to
have solved the menu and dialog collision problems. Thank you Angel and
Bob.
Jonathan
On Sat, Apr 12, 2014 at 3:55 PM, Jonathan Gutow <gu...@uwosh.edu> wrote:
> Bob,
>
> Thanks. That makes some sense. I've actually been in the process of
> updating the Sage stuff to the latest jquery because it was misbehaving, so
> the version should be good. I will swap to the nojq version of jsmol.
>
> I'll get back to you with my experience.
>
> Hypercube...cool. Something I really wanted to play with but just haven't
> had time to think about. I would actually like to develop an n-D
> visualization tool, where you can choose which coordinates to visualize
> against...I have thoughts but no time at the moment...
>
> Jonathan
>
>
> On Sat, Apr 12, 2014 at 2:00 PM, Robert Hanson <hans...@stolaf.edu> wrote:
>
>> Jonathan, good to hear! (Hey, and tell them I am implementing 4D mesh
>> rotation... think hypercube!)
>>
>> We have no problem on another project (MagresView), so I know it is
>> possible.
>>
>> 1) Make sure your jQuery version is 1.10+ for full MSIE support; 1.7
>> should be fine otherwise.
>> 2) Use Jsmol.min.nojq.js
>> 3) load jQuery first, including jQuery.ui.menu.js, then the JSmol library.
>> 4) Make sure the SageMath jquery-ui-1.8.11.custom.css has been generated
>> with a proper scope, and, I guess, that Sage is set up do handle that
>> properly. See
>> http://filamentgroup.com/lab/using_multiple_jquery_ui_themes_on_a_single_page/
>>
>> Bob
>>
>>
>>
>>
>>
>> On Sat, Apr 12, 2014 at 9:12 AM, Jonathan Gutow <gu...@uwosh.edu> wrote:
>>
>>> I'm working with the SageMath package, which uses jquery and jquery-ui
>>> extensively for its web interface. I am having trouble embedding JSmol in
>>> this because there is a collision. If I load the JSmol js libraries first
>>> and the the jquery libraries all the SageMath functions work, but the JSmol
>>> right-click popup menu does not. If I switch the load order I loose
>>> anything that uses dialogs in the SageMath interface and then the JSmol
>>> right-click menu works.
>>>
>>> I haven't been able to figure out which functions are colliding. I
>>> think it has to do with the dialog feature, but have no other clues.
>>>
>>> Any suggestions?
>>>
>>> Thanks,
>>> Jonathan
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>>> _______________________________________________
>>> Jmol-developers mailing list
>>> Jmol-developers@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>>>
>>>
>>
>>
>> --
>> 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
>>
>>
>>
>> ------------------------------------------------------------------------------
>> 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
>> _______________________________________________
>> Jmol-developers mailing list
>> Jmol-developers@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/jmol-developers
>>
>>
>
------------------------------------------------------------------------------
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-developers mailing list
Jmol-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-developers