tapmodo / Jcrop

Jcrop - The Javascript Image Cropping Engine
https://jcrop.com
Other
4.31k stars 938 forks source link

.Jcrop is not a function #234

Open ghost opened 8 years ago

ghost commented 8 years ago

There is a weird problem with this plugin..

If loaded on document ready, plugin works nicely. EXAMPLE: http://codepen.io/ExClouds/pen/jWejQZ

BUT, if loaded dynamically (in this example, when user selects image), i'm greeted with error ".Jcrop is not a function" EXAMPLE: http://codepen.io/ExClouds/pen/NxOZOa

I combined both examples here: http://codepen.io/ExClouds/pen/bEmPOo Again on page load it works fine, dynamically - not.

Could i get some pointers?

GertjanBrouwer commented 7 years ago

Try adding jquery.min.js before jcrop.min.js