I
Ian Rastall
I've got a small search page at http://www.sundry.ws/search.html and
I would like to add a section that allows me to open files on my
computer, instead of having to go to File > Open. It's just slightly
easier that way.
This is the code I've written to do that:
<form id="file">
<table id="file-open" summary="For opening local files">
<colgroup span="2"></colgroup>
<tbody>
<tr>
<td>
<p>File:</p>
</td>
<td>
<input type="file" id="upload-box" size="20" maxlength="255"
onchange="window.location.href = forms[3].elements[0].value" />
</td>
</table>
</form>
It works in IE 6 SP2, but not in Firefox 1.6 or Opera 8.0. Opera
does nothing, and Firefox gives me an error that "C is not a
registered protocol". Could someone possibly tell me why this isn't
working, and how to fix it?
TIA,
Ian
I would like to add a section that allows me to open files on my
computer, instead of having to go to File > Open. It's just slightly
easier that way.
This is the code I've written to do that:
<form id="file">
<table id="file-open" summary="For opening local files">
<colgroup span="2"></colgroup>
<tbody>
<tr>
<td>
<p>File:</p>
</td>
<td>
<input type="file" id="upload-box" size="20" maxlength="255"
onchange="window.location.href = forms[3].elements[0].value" />
</td>
</table>
</form>
It works in IE 6 SP2, but not in Firefox 1.6 or Opera 8.0. Opera
does nothing, and Firefox gives me an error that "C is not a
registered protocol". Could someone possibly tell me why this isn't
working, and how to fix it?
TIA,
Ian