Assume I have a form and I want people to be able to upload images, but I don't want the page to reload? I notice they do this in software like 37 Signals Campfire. Is there a way to do this with Javascript? Or should I use iframes?
Martin Pham answers:
you can using flash and javascript for direct or remote upload :)
[[LINK href="http://phim16.com/"]]phim[[/LINK]]
Jarret Minkler answers:
Something like ..
http://wiki.jqueryui.com/w/page/12137894/FileUploader
Will do flash, and iframe for older browsers
Arnav Joy answers:
see this url
http://www.aurigma.com/docs/iu7/quick-start-with-image-uploader-javascript.htm
http://www.chestysoft.com/jpegresize/jscfdemo.asp
Rainner Lins answers:
It's possible to make this by having Javascript communicate with a small imbedded flash swf on the page, but it can also be done with HTML5.
Have a look at this demo:
http://demo.tutorialzine.com/2011/09/html5-file-upload-jquery-php/
It uses a Jquery plugin called "jquery-filedrop":
https://github.com/weixiyen/jquery-filedrop
Which users Mozilla's FileReader Object:
https://developer.mozilla.org/en-US/docs/DOM/FileReader
Lots of options, just depends on what you need to do.