3 Replies - 394 Views - Last Post: 09 April 2013 - 05:30 AM

#1 InVaSiOn  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 22-February 13

JavaScript to find file and create link

Posted 09 April 2013 - 04:08 AM

I need to use Javascript to look through a directory and create links to files with a given extension.
I do not know how to start any advice would be appreciated.
Is This A Good Question/Topic? 0
  • +

Replies To: JavaScript to find file and create link

#2 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3392
  • View blog
  • Posts: 9,586
  • Joined: 08-June 10

Re: JavaScript to find file and create link

Posted 09 April 2013 - 04:13 AM

since Java​Script does not run on the server, it cannot look up files there.

however, you can use Java​Script to trigger a server script that does that task and returns the list to Java​Script.
Was This Post Helpful? 0
  • +
  • -

#3 InVaSiOn  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 13
  • Joined: 22-February 13

Re: JavaScript to find file and create link

Posted 09 April 2013 - 05:27 AM

I'm making a Epub reader in HTML5 which runs on the local computer. What I want to do is look through the directory with the epub files and create links to them using javascript.

This post has been edited by Dormilich: 09 April 2013 - 05:29 AM

Was This Post Helpful? 0
  • +
  • -

#4 Dormilich  Icon User is offline

  • 痛覚残留
  • member icon

Reputation: 3392
  • View blog
  • Posts: 9,586
  • Joined: 08-June 10

Re: JavaScript to find file and create link

Posted 09 April 2013 - 05:30 AM

if supported, you could try the File API.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1