[Javascript] setting dynamic form values with dynamic data

Sean Moran sean at i2on.com
Wed Nov 24 15:49:21 CST 2004


Could be copy - paste - error . I tried to clean it up a bit.

Actually, I was getting no errors just no values passed for the hidden 
form fields.

Thanks,
Sean

On Nov 24, 2004, at 12:51 PM, Matt Warden wrote:

>
> On Wed, 24 Nov 2004 10:31:49 -0700, Sean Moran <sean at i2on.com> wrote:
>> (howmany = the number of input sets)
>>
>> function linkEm(howmany) {
>>         for (i=0; i < howmany; i++) {
>>                 field = "document.forms[0].file"+ i + "data.value";
>>                 value = 
>> eval("document.forms[0].elements['otherdata["+i+"]'].value");
>>                 field = value;
>> }
>>
>> but these new dynamic form values are not being POSTed or GETed. Any
>> ideas?
>
> Are you getting any javascript errors? You have a syntax error above,
> but I don't know if that's just from a careless copy-and-paste.
>
> -- 
> Matt Warden
> Miami University
> Oxford, OH
> http://mattwarden.com
>
>
> This email proudly and graciously contributes to entropy.
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript
>




More information about the Javascript mailing list