J
jma
Hi all,
my application produces a log file in XML and I want my users to be
able to see this log file nicely formatted through either IE or FF,
but there is only client side code (no web connection). I have written
the code in JS in an HTML page that formats the XML file. I use the
following to load any file from the disk and display the contents:
<fieldset>
<legend>Please load only valid xml log files</legend>
<form method="POST" >
<input type="file" name="loadfile">
<input type="button" name="submit" value="submit"
onClick="LoadFile(this.form.loadfile.value)">
</form>
</fieldset>
however this.form.loadfile.value contains only the file name and not
the full path. Searching the net I found that it is supposed to be
this way and there is nothing one can do about it for security
reasons. Are there any other ways to get a dialog to select a file and
then get the full path?
Thanks a lot!
-- dimitris
my application produces a log file in XML and I want my users to be
able to see this log file nicely formatted through either IE or FF,
but there is only client side code (no web connection). I have written
the code in JS in an HTML page that formats the XML file. I use the
following to load any file from the disk and display the contents:
<fieldset>
<legend>Please load only valid xml log files</legend>
<form method="POST" >
<input type="file" name="loadfile">
<input type="button" name="submit" value="submit"
onClick="LoadFile(this.form.loadfile.value)">
</form>
</fieldset>
however this.form.loadfile.value contains only the file name and not
the full path. Searching the net I found that it is supposed to be
this way and there is nothing one can do about it for security
reasons. Are there any other ways to get a dialog to select a file and
then get the full path?
Thanks a lot!
-- dimitris