Let's say we have our javascript file in some directory on our computer,
in the same directory we have folder called 'server',
in that same 'server' folder we have 3 text files.
Simple enough. Now we want to display all of those 3 text files (in the 'server' folder) in our site,
with jQuery.
Is it possible ? Can I get those files from server folder with jQuery and display them in my site like that ?
textfile1.txt
textfile2.txt
textfile3.txt
I think it can be done with AJAX, am I right ?
If this possible, how can I do that ?
EDIT : I don't want to display the content of the files, I may even don't know the names of that files.
I want to kind of loop in the 'server' folder and get all the files names displayed in my site.
Simple enough?