files support in javascript!

wxdqz

New Member
Hello people. I need your advice. Image. I' d like to create a function on the web page in javascript that would open a file from exact path from client computer (for ex. c:/doc/temp.txt) and then show it on the web page as a webtext. That's my task.
I'd like to discus a ways of realisation. And to hear you ideas.
For getting full path to client file I use a form with a function:

<SCRIPT LANGUAGE="JavaScript"><!--
function validate() {
var filename = document.myform.mid.value;
}
//--></SCRIPT>

<FORM NAME="myform" onSubmit="return validate()">
<INPUT type="file" name="mid">
<INPUT TYPE="SUBMIT" NAME="mybutton">
</FORM>

The problem is that i don't know what to do further. I don't know the function that open a file from exact path. Please help me with it. And I'd like to hear your ideas about my task!

And the other question is. Can I do it writing java aplet?

Thanks a lot for help.

Konstanz
 
Back
Top