Using JCROP and JQUERY to crop images using from jsp..url based image source/ dynamic images not working

早过忘川 提交于 2019-12-06 12:43:09

I think that you were on the right track using jquery's load event but we want to know when the image is loaded not the window. So try:

$("#cropbox").load(function(){
            $('#cropbox').Jcrop({
                onChange: updateCoords,
                onSelect: updateCoords
            });
  });

so that you only attach jcrop once the image is loaded rather than once the window has loaded.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!