Ok, I created a very simple form and I am getting the exact same error on
the same line number. I've written my own js validation at this point but I
would like to solve this issue if at all possible.
CF code:
<cfform name="test" action="#CGI.SCRIPT_NAME#">
<CFINPUT type="TEXT" name="texttest" required="yes" message="text test!">
<INPUT type="submit">
</cfform>
View Source code:
<script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
<script type="text/javascript">
<!--
function _CF_checktest(_CF_this)
{
//reset on submit
_CF_error_exists = false;
_CF_error_messages = new Array();
_CF_error_fields = new Object();
_CF_FirstErrorField = null;
//form element texttest required check
if( !_CF_hasValue(_CF_this['texttest'], "TEXT", false ) )
{
_CF_onError(_CF_this, "texttest", _CF_this['texttest'].value,
"text test!");
_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>
On Thu, Mar 27, 2008 at 3:47 PM, Mischa Uppelschoten ext 10 <
[EMAIL PROTECTED]> wrote:
> Yes, I've had that and IIRC it had something to do with my own form
> validation that I added. Have you tried a CFFORM/CFINPUT on a virgin page
> without any added js?
>
> : I am coding a form and trying to use the built in CF(MX 7) validations
> to the
> : CFINPUT and CFSELECT tags.
> :
> : When I submitthe form, the js that CF writes is throwing errors (Object
> : expected). The fucntionality is something Ive used before and did not
> have
> : this problem.
> :
> : I was trying to validate email format and that something was selected.
> :
> : Any ideas?
> :
> :
> : -------------------------------------------------------------
> : Annual Sponsor - Figleaf Software
> :
> : To unsubscribe from this list, manage your profile @
> :
> http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform>
> :
> : For more info, see http://www.acfug.org/mailinglists
> : Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> : List hosted by FusionLink
> : -------------------------------------------------------------
>
>
>
>
> Mischa Uppelschoten
> The Banker's Exchange, LLC.
> 4200 Highlands Parkway SE
> Suite A
> Smyrna, GA 30082-5198
>
> Phone: (404) 605-0100 ext. 10
> Fax: (404) 355-7930
> Web: www.BankersX.com <http://www.bankersx.com/>
> Follow this link for Instant Web Chat:
> http://www.bankersx.com/Contact/chat.cfm?Queue=MUPPELSCHOTEN
> ----------------------- *Original Message* -----------------------
>
> *From:* "Jeff Howard" <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
> *To:* [email protected]
> *Date:* Thu, 27 Mar 2008 14:48:23 -0400
> *Subject: [ACFUG Discuss] Anyone ever have this cfinput or cfselect
> validation issue?*
>
> I am coding a form and trying to use the built in CF(MX 7) validations
> to the CFINPUT and CFSELECT tags.
>
> When I submit the form, the js that CF writes is throwing errors (Object
> expected). The fucntionality is something I've used before and did not have
> this problem.
>
> I was trying to validate email format and that something was selected.
>
> Any ideas?
>
>
>
> -------------------------------------------------------------
> Annual Sponsor - Figleaf Software <http://www.figleaf.com/>
>
> To unsubscribe from this list, manage your profile @
> http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform>
>
> For more info, see http://www.acfug.org/mailinglists
> Archive @ http://www.mail-archive.com/discussion%40acfug.org/
> List hosted by FusionLink <http://www.fusionlink.com/>
> -------------------------------------------------------------
> ------------------------------------------------------------- Annual
> Sponsor FigLeaf Software - http://www.figleaf.com To unsubscribe from this
> list, manage your profile @
> http://www.acfug.org?fa=login.edituserform<http://www.acfug.org/?fa=login.edituserform>For
> more info, see
> http://www.acfug.org/mailinglists Archive @
> http://www.mail-archive.com/discussion%40acfug.org/ List hosted by
> http://www.fusionlink.com-------------------------------------------------------------
-------------------------------------------------------------
Annual Sponsor FigLeaf Software - http://www.figleaf.com
To unsubscribe from this list, manage your profile @
http://www.acfug.org?fa=login.edituserform
For more info, see http://www.acfug.org/mailinglists
Archive @ http://www.mail-archive.com/discussion%40acfug.org/
List hosted by http://www.fusionlink.com
-------------------------------------------------------------