any one can tell how can i load list of files from a folder into a Menulist using JavaScript Arrays.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I beleave it is possible only using ActiveX Object, which is supported by IE only. Here You can find some tutorials: http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/144152 .
If You are making something for internal use, than You might consider using ActiveX Object. Otherwise, not possible with JS, unfortunately – use server-side languages.\
Example of listing all files in a directory with Java:
You can then output the files to the webpage with what ever method You are using.