<logic:iterate id="objectName" indexId="ctr" name="parcel" property="parcelObj">
<html:text styleId="my_${ctr}" property="parcelLists[${ctr}].appDn"/>
</logic:iterate>
This sets up unique object identifiers by id and then you can get at them by reference in your javascript:
var ns4 = document.layers? true : false; var ie = document.all? true : false; var dom = document.getElementById && !document.all ? true : false;
function getObject(id) { if (dom) return document.getElementById(id); else if (ie) return document.all[id]; else if (ns4) return document.layers[id]; }
HTH,
Mark
Michael Rush wrote:
I've got a form that's using nested forms, with the following type of layout..
[radio] option 1 [text] value 1 [text] value 2
[radio] option 2 [text] value 1 [text] value 2
[radio] option 3 [text] value 1 [text] value 2
Each of the groups is a nested form, so the form element names are in the form of nestedform.property. I would like to add an onclick to the text fields so that the radio button for that group is selected if someone starts entering text in the value1 or value 2 fields. The problem is that the field names have a period in them, so javascript is thinking there's another object in the hierarchy. Is there a way to escape or quote the name of the field? Or another way to identify the field?
Thanks, Michael
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Mark Miller Nulli Secundus Inc. 403.270.0657 ext.30 403.512.4082 mobile [EMAIL PROTECTED] http://www.nulli.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]