Sign up | Log in
Who am I?
I am a 30-something Information Scientist working and studying at Indiana University in Bloomington, IN.
Job Resources SearchTools
Google Craigslist Campus Jobs Search Help Topics
Tech Blogs JavaScript Resources Other Resources
Non-Ajax "Ajax" Uploads
"Ajax" uploads are a hot topic widely asked about on the web, but unfortunately 'actual' Ajax uploads don't really happen using Ajax as much as Flash, Java applets or other embedded programs. Some browsers do support drag and drop file uploads, but you still have to submit the form to actually upload something. Because client-side programs can't interact with your operating system unless you explicitly give permission to use something like those options, it might seem you're stuck with boring uploads. "But that can't be! I see it all over the place!", you might exclaim. Well, yes, you DO see something graphically appealing, and it CAN be pretty user-friendly to be able to upload as many things in a form as you'd like.

"But you just said I can't do that!"

No I didn't. I said you can't UPLOAD files with Ajax. I never said you can't provide the user with more and more upload fields in their form as they fill it out (hiding the ones they've already used). This page explains how, and links to code to help you do it. The strategy involves creating (and then hiding) dynamically-generated input fields as the user clicks a button to add more and more files. Then all of them are uploaded at the time of form posting, which is a completely normal, manageable thing to do.

Categories

Ajax
Design
Javascript





Submit a Comment


05 February, 2012
Type the time above in the following format: 'YYYY-MM-DD'
(Type it exactly, with no spaces):

Email: [Info]