Americo
08-22-2002, 06:34 PM
In a form i have 'n' fields and i call the information of fields dynamic, that is, in a function a call the fields values width eval and it works.
var teste = eval("document.frm." + d1 + ".value")
The problem is, i want to change the field value and the 'Eval' method doesn't works. The code that i have is the next one:
eval("document.frm." + d1 + ".value") = tes
the 'd1' is the name of field on form and 'tes' is a value for example '333'
when a execute this function is visible a error 'Cannot assign to a function result'
The question is? Exists another way to put in a field dynamic information???
Thanks,
Pedro Américo
var teste = eval("document.frm." + d1 + ".value")
The problem is, i want to change the field value and the 'Eval' method doesn't works. The code that i have is the next one:
eval("document.frm." + d1 + ".value") = tes
the 'd1' is the name of field on form and 'tes' is a value for example '333'
when a execute this function is visible a error 'Cannot assign to a function result'
The question is? Exists another way to put in a field dynamic information???
Thanks,
Pedro Américo