Working with a cfform here in CF7 and I'm getting a javascript error and
none of the validation is happening. Wondering if anyone has seen this one
lately?
Firefox Javascript Console Error Message:
obj.value is undefined
http://mydomainhere.com/js/cfform.js
Points to this line in the cfform.js:
function _CF_hasValue(obj, obj_type, obj_trim)
{
if (obj_type == "TEXT" || obj_type == "FILE" ||obj_type == "PASSWORD"
|| obj_type == "CFTEXTAREA" || obj_type == "TEXTAREA" || obj_type ==
"CFTEXTINPUT")
{
if (obj.value.length == 0)
return false;
else
if( obj_trim )
{
//trim whitespace - for backward compatability this
is optional
str =
obj.value.replace(/^\s+/,'').replace(/\s+$/,'');
if (str.length == 0)
{ return false; }
}
return true;
Scratching my head. Think it's time to go home. Been a long day.
--
Ryan
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion mailing lists
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:323139
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4