Menu

#2 JSValidatedField Bugs

open
nobody
None
5
2012-12-07
2003-09-09
Anonymous
No

generated HTML below...

<form name="test" method="post"
action="/scripts/WebObjects.exe/tryWonder0.woa/wo/05
pKOdZzpztu40Z2TV2EX0/2.1"><input type=text
onBlur="validate_Image-440536705()" value="hoge"
name="Image-440536705">
<SCRIPT language=JavaScript><!-- Dynamic client side
script from WebObjects
function validate_Image-440536705() {
if (document.forms.test.Image-440536705.value == ""0)
{ alert("error"); return false; } }
//-->
</SCRIPT>
<input type=submit value="Submit"
name="1.1"></form></BODY>

Bug1: name attribute in INPUT element include "-"
charactor -> JavaScript ERROR!
JSValidatedField.java Line25:
uniqueID = "Image"+(new Random()).nextInt();

abs()required?

Bug2: when "inputIsRequired" is set, ambigous ”0”
appears.
JSValidatedField.java Line75:
if (addOr =="YES") // none of the previous tests
have fired
functionScript = functionScript +"0";

NOT addOr ==”YES”
addOr !=”YES” ????

regards.

Discussion


Log in to post a comment.