Why do I get a blank page when downloading?

Use javascript to get the file uploaded on a web page last modify date?

  • I have made a web page for downloading some files. I wanna show the last modified/updated date for those files shown in my page, which are stored in my server, i.e. users get the files from my server via the web page. By using javascript, how to get these dates and show it on my web page?

  • Answer:

    The information is also available from Server programming in Perl or SSI commands <!--#echo var="LAST_MODIFIED"--> or <!--#flastmod file="main.shtml"--> See link for more details.

Kinya at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Surf to "How to display the last modified date" at: http://www.chami.com/tips/Internet/041198I.html If you're in a hurry, simply copy and paste the code the web page.

dranagar

The answer that Andoryu.net gave you will only display the last modified date of the html file that the code is embedded in. As far as I know, getting file information from the server (in effect what you want to do) is not something that JavaScript can do. For that I would use PHP. Rawlyn.

Rawlyn

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.