My bad.... skimmed the original post. Most often it due to js files not
getting loaded or hand rolled js conflicting with CF form.

G!

On Wed, Jun 3, 2009 at 7:38 PM, Gerald Guido <[email protected]> wrote:

> It looks like cfform.js is not being loaded. Make sure that the cfform JS
> files are being included. The fastest way to fix this (in case of an
> emergency) is to copy the /CFIDE/scripts/ directory to the root of your
> site.... or create that dir and copy over cfform.js and other related js
> files.
>
> It is a mapping issue IIRC.
>
> HTH
> G!
>
>
> On Wed, Jun 3, 2009 at 7:22 PM, Ryan Letulle <[email protected]> wrote:
>
>>
>> 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:323141
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to