
Problem updating Form field value with DHTML
The value is read only please see(this link may break)
http://www.*-*-*.com/
.asp
--
Regards,
Tony
Developer/designer/all around good guy
www.csofm.com
We specialize in Medical and Construction office/web solutions
Come see the last best place, Billings, MT
www.csofm.com/blgsdine/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quote:
> I can update the value of a text field but not a file field. How come?
> Try this sample code to see what I mean...
> <HTML>
> <HEAD>
> <META NAME="GENERATOR" Content="SAPIEN Technologies PrimalSCRIPT(TM)">
> <TITLE>Document Title</TITLE>
> <Script Language="
VBScript">
> Sub SetValue()
> frmEditor.newEditor.value = "Line 1"
> frmEditor.newPath.value = "Line 2"
> End Sub
> </Script>
> </HEAD>
> <BODY Onload="SetValue">
> <Form name=frmEditor action=post>
> Editor: <INPUT type="file" style="width: 200" name="newEditor" value="">
> Path: <INPUT type="text" style="width: 200" name="newPath" value="">
> </form></BODY>
> </HTML>
> Regards,
> Ian