> -----Original Message----- > From: Christina Siena [mailto:[EMAIL PROTECTED] > Sent: Friday, August 13, 2004 1:10 PM > To: [EMAIL PROTECTED] > Subject: RE: Javascript question re: dynamically generated input > type='text' controls > > > If I try to use hidden fields to associate the valid name with the > multiple composite key name, then what is it about hidden > fields that I > can use?
by way of example: <html:hidden property="number" value="1480"/> <html:hidden property="countryCode" value="USA"/> <html:hidden property="templateNumber" value="79999"/> <html:hidden property="typeCode" value="STAGE"/> <html:hidden property="languageCode" value="EN"/> <html:hidden property="idTypeCode" value="MODE"/> Then put the key together in your action class. HTML is not designed to do what you want to do. > > > > > >> -----Original Message----- > >> From: Christina Siena [mailto:[EMAIL PROTECTED] > >> Sent: Friday, August 13, 2004 11:23 AM > >> To: [EMAIL PROTECTED] > >> Subject: Javascript question re: dynamically generated input > >> type='text' > >> controls > >> > >> > >> Hi, > >> > >> I am developing a page containing dynamically generated input > >> type="text" controls where their names consist of multiple > composite > >> keys. The name of the input type="text" controls, however, > can not be > >> referenced correctly using javascript. For example, I have the > >> following html input tag: > >> > >> <input type="text" size="1" > >> name="value(number=1480;countryCode=USA;templateNumber=79999;t > > ypeCode=STAGE;languageCode=EN;idTypeCode=MODE:::::)" > >> value="" disabled="true" class="disabledText" > >> onchange="benefitsChanged();" /> > >> > >> The following javascript won't work because the control name > >> contains > and ; and : as follows: > >> > >> document.formname.number=1480;countryCode=USA;templateNumber=7 > > 9999;typeCode=STAGE;languageCode=EN;idTypeCode=MODE:::::.value > >> = ""; > >> > >> I only have one other idea how to solve this problem. Instead > >> of control > >> names containing the multiple composite keys, instead use a > >> simple valid > >> name. In the action, map the valid name to the multiple > >> composite keys. > >> Does > >> anyone have any other ideas how to solve this? > > > > Ummmmm.... hidden fields in the form? > > > > > > > -------------------------------------------------------------- > ------- To > > unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]