Re: [jQuery] Implementing JCrop in Ajax Upload

2010-01-28 Thread adi sembiring
I got it, i must chage the crop function declaration become function jCrop(f) { $(f).Jcrop({ aspectRatio: 1, setSelect: [0,0,150,150], onSelect: updateCoords, onChange: updateCoords

Re: [jQuery] Implementing JCrop in Ajax Upload

2010-01-28 Thread brian
What do you mean by, "the image selection doesnt work"? Can you give a clearer description o fwhere you think the problem lies? Are you certain that the path sent back from the server is correct? What does alert(data.path) show? On Wed, Jan 27, 2010 at 8:21 PM, adi sembiring wrote: > Hi , I'

[jQuery] Implementing JCrop in Ajax Upload

2010-01-27 Thread adi sembiring
Hi , I'm trying to develop image crop using JQuery. I use ajax to upload the image. after the image success fully uploaded. I load the uploaded image using jquery to its container. > $("#image_upload").html(" id=\"cropbox\" alt=\"cropbox\" />"); > but the image selection doesnt work. why it c