Hi,
I have a list of variables in javascript I want to automatically populate with the file list of a given directory. This is the file list:
hello.mp3
gasp.mp3
scream.mp3
...
and the variables would look like this:
var sounds = {
"hello" : {
url : "sound/hello.mp3"
},
"gasp" : {
url : "sound/gasp.mp3",
},
"scream" : {
url : "sound/scream.mp3",
}
};
the problem is that I CANT use PHP because my server doesnt support it and I cant change that. This on the client side so I guess that doing it with javascript is also out of the question. What alternatives do I have to achieve this?