How to get a window to select file when click on link

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
syamswaroop
Forum Newbie
Posts: 19
Joined: Fri May 01, 2009 1:31 am

How to get a window to select file when click on link

Post by syamswaroop »

hi,
My requirement is i have to upload photos into my blog , so i have used
<input type="file">.
like that i can upload 5 files.
after selecting one file then select another link should be displayed ,on clicking the link again a window to select a file is to be appear. like that for upto 5 photos.
how to do that .
insight
Forum Commoner
Posts: 52
Joined: Tue Jul 07, 2009 9:12 am

Re: How to get a window to select file when click on link

Post by insight »

syamswaroop wrote:hi,
My requirement is i have to upload photos into my blog , so i have used
<input type="file">.
like that i can upload 5 files.
after selecting one file then select another link should be displayed ,on clicking the link again a window to select a file is to be appear. like that for upto 5 photos.
how to do that .
Javascript is probably the best way of doing that. Look up some javascript tutorials or someone here might be able to tell you how.
User avatar
jackpf
DevNet Resident
Posts: 2119
Joined: Sun Feb 15, 2009 7:22 pm
Location: Ipswich, UK

Re: How to get a window to select file when click on link

Post by jackpf »

You'll want to look into createElement() and appendChild().
Post Reply