Problem updating Form field value with DHTML 
Author Message
 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



Mon, 24 Dec 2001 03:00:00 GMT  
 Problem updating Form field value with DHTML
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



Tue, 25 Dec 2001 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Updating field in form from summary value in another

2. Making hidden fields visible based on a form field value

3. DHTML Edit Control graphics update problem

4. Tabbed form field won't update

5. Tabbed Form Field won't update

6. passing fields from form to form, and handling a date field

7. adodb connection to excel: recordset.fields(i).value=null for fields with numeric value

8. adodb connection to excel: recordset.fields(i).value=null for fields with numeric value

9. adodb connection to excel: recordset.fields(i).value=null for fields with numeric value

10. form field value

11. form.field.value is NULL or not an OBJECT

12. Javascript and Copying Form Field Values

 

 
Powered by phpBB® Forum Software