![]() |
|
|
|||||||
![]() |
HTML - how to code html to click and download? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Can you please tell me how to code html link, so that user can click and
download the entire folder? Also, how to code html link, so that user can open this folder directory? Thank you. Amy |
|
|
|
|
#2 |
|
Posts: n/a
|
On Sat, 5 Mar 2005 14:33:13 -0800 Amy wrote:
> Can you please tell me how to code html link, so that user can click and > download the entire folder? > > Also, how to code html link, so that user can open this folder directory? > > Thank you. > Pack the contents into a zip file. Makes transferring of content quicker. |
|
|
|
#3 |
|
Posts: n/a
|
"Amy" <jgy2001-> wrote in
news:1110061380.9c2bd46862fbd0f2bb2196ffd2112f16@b ubbanews: > Can you please tell me how to code html link, so that user can click and > download the entire folder? HTML is a markup language - it tells the browser how the webpage is 'marked up'. It's not something you "code" in the sense of a programming language. If some HTML contains an anchor tag then most browsers will, when a user 'clicks' on a link(presented due to the presence of the anchor tag), send a request for the anchor tag's href attribute URI to a webserver. Once that's done, it's the job of the webserver to respond. There are a variety of ways to, at that point, "download the entire folder", but they all require configuration and/or programming on the webserver. For example, you might be using Apache and PHP, and have the URI be http://www.example.com/download_dir/ and have an index.php script in /download_dir which puts all the files except itself that exist in /download_dir into a ZIP file and then sends that to the browser, which will, depending on the user's preferences, either open the ZIP file or save it to their harddisk. > Also, how to code html link, so that user can open this folder directory? For example, you might be using Apache, and have the URI be http://www.example.com/download_dir/ and not have any index document in /download_dir (e.g. no index.php, index.html, etc.), and have Apache configured to present a directory listing. http://httpd.apache.org/docs/mod/mod_autoindex.html -- Dave Patton Canadian Coordinator, Degree Confluence Project http://www.confluence.org/ My website: http://members.shaw.ca/davepatton/ |
|
|
|
#4 |
|
Posts: n/a
|
OK.
I set up this link: <a href="URL filename.extension">Click here to download this file</a> it did not download the zip files? How do I set up the html code at the link? "Richard" <Anonymous@127.001> wrote in message news:... > On Sat, 5 Mar 2005 14:33:13 -0800 Amy wrote: > > > Can you please tell me how to code html link, so that user can click and > > download the entire folder? > > > > Also, how to code html link, so that user can open this folder directory? > > > > Thank you. > > > > Pack the contents into a zip file. > Makes transferring of content quicker. > > > |
|
|
|
#5 |
|
Posts: n/a
|
You mean something like this? <a href="URL foldername">Click here to download this file</a> My folder has no index file of any kind. Just a bunch zip and pdf files. "Dave Patton" <> wrote in message news:Xns9610A7EB8A84Cmrzaphoddirectcaold@24.71.223 .159... > "Amy" <jgy2001-> wrote in > news:1110061380.9c2bd46862fbd0f2bb2196ffd2112f16@b ubbanews: > > > Can you please tell me how to code html link, so that user can click and > > download the entire folder? > > HTML is a markup language - it tells the browser how the > webpage is 'marked up'. It's not something you "code" > in the sense of a programming language. > > If some HTML contains an anchor tag then most browsers > will, when a user 'clicks' on a link(presented due to > the presence of the anchor tag), send a request for the > anchor tag's href attribute URI to a webserver. > > Once that's done, it's the job of the webserver to respond. > There are a variety of ways to, at that point, "download > the entire folder", but they all require configuration > and/or programming on the webserver. > > For example, you might be using Apache and PHP, and have > the URI be http://www.example.com/download_dir/ and have > an index.php script in /download_dir which puts all the > files except itself that exist in /download_dir into > a ZIP file and then sends that to the browser, which will, > depending on the user's preferences, either open the > ZIP file or save it to their harddisk. > > > Also, how to code html link, so that user can open this folder directory? > > For example, you might be using Apache, and have > the URI be http://www.example.com/download_dir/ > and not have any index document in /download_dir > (e.g. no index.php, index.html, etc.), and have > Apache configured to present a directory listing. > http://httpd.apache.org/docs/mod/mod_autoindex.html > > -- > Dave Patton > Canadian Coordinator, Degree Confluence Project > http://www.confluence.org/ > My website: http://members.shaw.ca/davepatton/ |
|
|
|
#6 |
|
Posts: n/a
|
Actually, it would be nice and simple, if I can just let users to open my
folder and download selected items inside the folder. How do I do that? "Amy" <jgy2001-> wrote in message news:1110132259.163ef1b8c5590cb322ca27baac0c17a7@b ubbanews... > > You mean something like this? > > <a href="URL foldername">Click here to download this file</a> > > My folder has no index file of any kind. > Just a bunch zip and pdf files. > > |
|