Hi,
I have a page in which i need to update a
"TEXTAREA" when a combo value is changed.
Previoiusly i populated a
array to have the test for each combo value.
var
desc = new Array(
<logic:iterate name="desc"
id="b">
<%if(icount!=0){%>,<%}%>
"<bean:write
name="b"/>"
<%icount++;%>
</logic:iterate>
);
Now if there
was any "enter" character then i get a _javascript_ error(unterminated string
constant). Now i modified my code to...
<html:form>
..
..
..
<input type="hidden" name="desc" value =
"">
<logic:iterate
name="desc" id="c">
<input type="hidden" name="desc"
value = "<bean:write name="c"/>"
>
</logic:iterate>
</html:form>
btw..
the _javascript_ function goes like this ...
iIndex =
document.forms[0].combo.selectedIndex;
document.forms[0].textarea1.value=
document.forms[0].desc[iIndex+1].value;
But these values need not
be posted on the form submission. Will this cause any problem(Large data)?? Any
other simple solution???
Thank you very
much,
sudhakar
PS :I have not used <html:hidden />
This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorised review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly prohibited and may be unlawful.
Visit us at http://www.cognizant.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]