How can I create a link to a local file on a locally-run web page?

I’d like to have an html file that organizes certain files scattered throughout my hard drive. For example, I have two files that I would link to: C:\Programs\sort.mw C:\Videos\lecture.mp4 The problem is that I’d like the links to function as a shortcut to the file. I’ve tried the following: <a href=”https://stackoverflow.com/questions/18246053/C:\Programs\sort.mw”>Link 1</a> <a href=”C:\Videos\lecture.mp4″>Link 2</a> … Read more

Loading local JSON file

I’m trying to load a local JSON file but it won’t work. Here is my JavaScript code (using jQuery): var json = $.getJSON(“test.json”); var data = eval(“(” +json.responseText + “)”); document.write(data[“a”]); The test.json file: {“a” : “b”, “c” : “d”} Nothing is displayed and Firebug tells me that data is undefined. In Firebug I can … Read more