Tuesday, April 5, 2011

Upload and crop images in a modal box with jQuery

Hello!

I am having a lot of trouble doing the following:

A user should be able to upload an image (through the hidden iframe
technique or flash). The uploaded image appears in a modal box
(colorbox, fancybox, lightbox, etc. doesn't matter which one) with
cropping capabilities and a preview of the result. And finally he
saves the result of the cropping.

The problems I'm having relate to the modal box. At the beginning I
started working with iframes inside them but it was impossible (at
least for me) to set the height and width properly. I tried inline
forms but after uploading the image correctly I couldn't manage to
open the saved image without calling an iframe.

So my question is the following: Is there a tutorial or anyone knows
of a helper/component/jquery plugin/whatever, that does this?

Thanks in advance!

Samuel

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: