annotorious / annotorious-v1-selectorpack

Various Annotorious plugins that add additional image selection tools
21 stars 7 forks source link

Selector pack does not work along side JQuery #3

Open noahwhite opened 11 years ago

noahwhite commented 11 years ago

When JQuery (1.8.3) is introduced to a page with the selector pack the selectors fail to work and the following is sent to the console:

Uncaught TypeError: Object [object Object] has no method 'Da'   http://annotorious.github.io/latest/annotorious.min.js:236
  r.Da  http://annotorious.github.io/latest/annotorious.min.js:236
  window.onload E:/sandbox/ImageTagger/ImageTagger_Web/index-annotorious.html:33

Line 33:

anno.addSelector(img1_src, new FancyBoxSelector());
rsimon commented 11 years ago

Do you have some HTML source code you can post? It could be jQuery and Annotorious competing for the '$' character. In general, the safest route to take is to avoid using '$' when multiple minified JS libs are on the same page. In jQuery, you can just use 'jQuery' instead of '$'.

See also more info about this here and here.