Error Console in Firefox specifies this line as a problem...
if( !_CF_hasValue(_CF_this['LastName'], "TEXT", false ) )
This is code that is generated by CF on the fly though.. All
I'm doing is setting onSubmit.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head><script type="text/javascript"
src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript"
src="/CFIDE/scripts/masks.js"></script>
<meta http-equiv="Content-Type" content="text/html;
charset=utf-8" />
<title>Insert Artist Form</title>
<script type="text/javascript">
if (window.ColdFusion)
ColdFusion.required['FirstName']=true;
</script>
<script type="text/javascript">
if (window.ColdFusion) ColdFusion.required['LastName']=true;
</script>
<script type="text/javascript">
<!--
_CF_checkinsArtist = function(_CF_this)
{
//reset on submit
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//form element LastName required check
if( !_CF_hasValue(_CF_this['LastName'], "TEXT", false ) )
{
_CF_onError(_CF_this, "LastName",
_CF_this['LastName'].value, "Please input an artist last name.");
_CF_error_exists = true;
}
//display error messages and return success
if( _CF_error_exists )
{
if( _CF_error_messages.length > 0 )
{
// show alert() message
_CF_onErrorAlert(_CF_error_messages);
// set focus to first form error, if the field supports js
focus().
if( _CF_this[_CF_FirstErrorField].type == "text" )
{ _CF_this[_CF_FirstErrorField].focus(); }
}
return false;
}else {
return true;
}
}
//-->
</script>
</head>
<body>
<h2>Insert an Artist</h2>
<form name="insArtist" id="insArtist"
action="/content/contactnew.cfm" method="post" onsubmit="return
_CF_checkinsArtist(this)">
<!-- First Name:
<input name="FirstName" id="FirstName" type="text"
maxlength="20" /><br/> -->
Last Name:
<input name="LastName" id="LastName" type="text"
maxlength="20" /><br/>
<input name="Insert" id="Insert" type="submit"
value="Insert Artist" /> <input type='hidden'
name='FirstName_CFFORMREQUIRED' value='Please input an artist first
name.'>
</form>
</body>
</html>