Display file contents in drop down list
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Sunday, October 27, 2002 10:02 PM

Hi. I would like to knoe if its possible to read values from a file and display it in a drop list in HTML. If it's possible could someone please show me how? Thank You.

Re: Display file contents in drop down list

Posted By:   Lasse_Koskela  
Posted On:   Sunday, October 27, 2002 10:36 PM

Sure you can read a file's contents and generate some sort of list, but the question is "client-side file or server-side file?"


In order to read a client-side file, the user must explicitly post the file to the server-side using a form-element after which the server-side code (servlet) can parse the file and return the HTML containing the drop down list.


Neither with HTML nor JavaScript you can get access to local files. That would be kind of dangerous, don't you think...?

About | Sitemap | Contact