jQuery & PHP: Upload an image and refresh gallery page with new thumbnail -
i have page contains thumbnails photo gallery. on page link upload more images. when click link modal opens contains upload form (jquery colorbox in iframe) allow upload 1 image (plus name, caption, etc) @ time using php. when form submitted image uploads , page refreshes in modal allow more uploads.
since modal sitting on top of existing thumbnails i'd user see new thumbnail added page after it's uploaded. possible? how this?
i'm assuming modal in iframe
. if that's case, when upload submitted, , modal form reloads allow upload, send uploaded file info (thumbnail url) parent frame. example:
parent.uploadcallback('http://my.domain.com/newly-uploaded-thumbnail.jpg');
then have uploadcallback
function in main frame creates img
object , appends list of thumbnails.
Comments
Post a Comment