Hi Bob,

Jqueryui is compatible with jQuery1.6+, I also tried to use JSmol.nojq.min.js
and I got the same error. I will keep on this a bit more and if I don't
find a solution I will use any other tooltip widget, isn't a big deal.

Thanks for your time!
Fausto

On 19 August 2015 at 23:13, Robert Hanson <hans...@stolaf.edu> wrote:

> Make sure your version of the  ui is compatible with JSmol's version of
> jQuery. Also, make sure you properly "scope" your jQueryUI css. One thing
> you can try is to use JSmol.nojq.min.js  and then add your own jQuery and
> jQueryUI if you want. But be aware that if you add the full jQueryUI
> package (menu, for example), you may break JSmol's menuing.
>
> Bob
>
> On Wed, Aug 19, 2015 at 1:21 PM, <tremato...@gmail.com> wrote:
>
>> Hello,
>>
>> I found a bug when using jqueryui tooltip widget (
>> https://jqueryui.com/tooltip/)  in the same page of jsmol.
>>
>> To reproduce edit file simple1.htm from jsmol package:
>>
>> 1. Add the jqueryui  js and css files at <head>:
>>
>> <link rel="stylesheet" href="//
>> code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
>>   <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
>>
>> 2. Add the call to create tooltip inside <script>:
>>
>> $(function() {
>>     $( document ).tooltip();
>> });
>>
>>
>> 3. At beginning of body add some element that has title="something" tag:
>>
>> <p title="go jsmol!">testing</p>
>>
>>
>> 4. Save, reload the page, open chrome dev tools console and use the mouse
>> to hover the text. This is the error:
>>
>> "Uncaught TypeError: h.removeAttr is not a function" jquery-ui.min.js:13
>>
>> Also the tooltip is stuck at the bottom of screen. This seems to be
>> always the case, I tried others jsmol pages and the tooltip is always at
>> the bottom even if I set the position using the options from tooltip widget.
>> You can also remove the jsmol js file to check that tooltip works when
>> you don't have jsmol.
>>
>>
>> Please, I would appreciate if someone could confirm this.
>>
>>
>> best regards
>> Fausto
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>>
>> _______________________________________________
>> 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
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Jmol-users mailing list
> Jmol-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jmol-users
>
>
------------------------------------------------------------------------------
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to