[Javascript] setting dynamic form values with dynamic data

Matt Warden mwarden at gmail.com
Wed Nov 24 13:51:31 CST 2004


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.



More information about the Javascript mailing list