When creating a jsp page to call a javascritp passing in a dynamic value as follows, works in one place, but EXACT same code doesn't work in anohter.
Works -
CODE:
<select name="zoneList" onchange="document.forms[1
].flat.val
ue = document.forms[1].zoneList
.options[d
ocument.fo
rms[1].zon
eList.opti
ons.select
edIndex].v
alue; retrieveURL('lookupLookup.
do?f=<c:ou
t value='${f}'/>','addSnagFo
rm','<c:ou
t value='${f}'/>');" >
HTML GENERATED:
<select name="zoneList" onchange="document.forms[1
].flat.val
ue = document.forms[1].zoneList
.options[d
ocument.fo
rms[1].zon
eList.opti
ons.select
edIndex].v
alue; retrieveURL('lookupLookup.
do?f=3','a
ddSnagForm
','3');" >
Broken -
CODE:
<td align="left"><html:text property="flat" size="25" maxlength="100" onblur="cryMonkey(); retrieveURL('lookupLookup.
do?f=<c:ou
t value='${f}'/>','addSnagFo
rm','<c:ou
t value='${f}'/>');"/></td>
HTML GENERATED
<td align="left"><input type="text" name="flat" maxlength="100" size="25" value="" onblur="cryMonkey(); retrieveURL('lookupLookup.
do?f=<c:ou
t value='${f}'/>','addSnagFo
rm','<c:ou
t value='${f}'/>');"></td>
Start Free Trial