Forum Moderators: open

Message Too Old, No Replies

How to create links of the two most recent files of a folder?

Filehandling, current file, JavaScript

         

Sergeant

9:38 am on Jun 5, 2009 (gmt 0)

10+ Year Member



Hello,

on a local .html-page (.html is located on my PC) I want to show links for the two most recent files of a specific folder.

Is this possible using JavaScript? If so, how I can achieve this?

Many thanks for any hint!

Regards

Sergeant

whoisgregg

7:53 pm on Jun 8, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to WebmasterWorld, Sergeant!

Javascript doesn't have access to the local file system. This is part of the browser security model that helps to protect users from malicious websites. You may be able to accomplish that using a Java application, browser plugin, or ActiveX control but never with pure Javascript.