Skip to content
This repository has been archived by the owner on Apr 2, 2023. It is now read-only.

Selector pack does not work along side JQuery #3

Open
noahwhite opened this issue Aug 15, 2013 · 1 comment
Open

Selector pack does not work along side JQuery #3

noahwhite opened this issue Aug 15, 2013 · 1 comment

Comments

@noahwhite
Copy link

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
Copy link
Member

rsimon commented Aug 16, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants