tracker issue : CF-3914301

select a category, or use search below
(searches all categories and all time range)

The code obj.value.length in _CF_hasValue function in cfform.js fails in IE 9 (maybe 10) on a textarea

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/UserError

Reporter/Name(from Bugbase): Jim Ward / Jim Ward (Jim Ward)

Created: 12/23/2014

Components: AJAX

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Major / Some users will encounter

Locale/System: English / Win 2008 Server R2 64 bit

Vote Count: 0

Problem Description:  When using form validation on a textarea in IE9 it fails on the function _CF_hasValue on the line of code that says "if(obj.value.length==0) because the textarea does not have a value attribute in IE.

Steps to Reproduce:  Create a form with a textarea and use form validation and try to validate the form in IE9.  <cfform><cftextarea required="true"></cftextarea></cfform> then validate the form.

Actual Result:  Receive the error:  SCRIPT5007: Unable to get value of the property 'length': object is null or undefined

Expected Result:  Proper form validation without the error.

Any Workarounds:  None

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3914301

External Customer Info:
External Company:  
External Customer Name: Yodeler
External Customer Email:  
External Test Config: My Hardware and Environment details:  Coldfusion 11, update 3.  64 bit on IIS 7.5 on Windows 2008 R2 64 bit.



Yodeler, I haven't checked this on IE9 yet, but does this work for you on any other browser (Chrome, FireFox ...)? Also can you also share the details on how exactly you are validating the form? The following works on standalone CF 11.0.03,292480 / Win7x64 / IE10, IE11, Chrome <cfif isdefined("Form.txt_ar")> layout area is dfnd. </cfif> <cfform name="cf_frm" id="cffrm" method="post" action="#CGI.SCRIPT_NAME#"> <cftextarea name="txt_ar" required="true"> zzzzzzzzzz. </cftextarea> <cfinput name="sbmt" type="submit"> </cfform> Thanks.
Comment by Piyush K.
9208 | December 28, 2014 11:00:51 AM GMT
It does work for Firefox. However, I found the problem. My manager ended up putting dashes into one of the name fields which screwed things up. So call it user error.
Comment by External U.
9209 | December 29, 2014 01:10:17 PM GMT
Thanks Yodeler, for writing back. Closing this as 'user error'. By the way, is this in anyway, to the other bug you've raised about the use of hyphens in cfwindow?
Comment by Piyush K.
9210 | January 12, 2015 03:20:08 AM GMT