"."的问题能解决吗?
周三径 2004-04-08 09:55:45 由于我是在JSP中用的Jscript,所以用到了form,在传参时要用“flow.id”的形式,如<input type="text" name="flow.id">,但是这样在用Jscript就有问题了,在document.createFC.flow.id.value.length<3中 不能解析flow.id。如果将flow.id改成没有点的格式当然可以,但是,却不好该,因为会导致JSP的后台Bean不可用,所以想问问各位大侠有没有什么好办法,解决。
<!--
<html>
<head>
<title>check</title>
<script>
function checklength()
{
if(document.createFC.flow.id.value.length<3 || document.createFC.flow.id.value.length>10 )
{
alert("编号长度必须在3位到10位之间");
return false;
}
return true;
}
</script>
</head>
<body>
<form action="test.html" method="post" name="createFC" OnSubmit="return checklength();">
<table align="center" bgcolor="#FFFFFF" border="0" cellspacing="2" cellpadding="5">
<tr>
<td>编号:</td>
<td><input type="text" name="flow.id"></td>
</tr>
<br>
</table>
<br>
<input type="submit" name="submit" value="创建" />
</form>
</body>
</html>
-->