tracker issue : CF-4204031

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

ColdFusion 2016 Update 8 breaks ColdFusion.Ajax.submitForm in IE 11

| View in Tracker

Status/Resolution/Reason: Closed/Deferred/AsDesigned

Reporter/Name(from Bugbase): Samuel E. / ()

Created: 02/17/2019

Components: AJAX

Versions: 2016

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: ColdFusion 2016 Update 8 /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description:  ColdFusion.Ajax.submitForm errors out in IE 11 after ColdFusion 2016 Update 8.  

Steps to Reproduce: Create a ColdFusion ajax form with cfinput's or inputs with id's and the page wil receive a JavaScript error on submit.

Actual Result:  Errors out in cfajax.js when JavaScript startsWith function is called.  startsWith function is not supported in IE 11

Expected Result:  That ColdFusion Ajax form submits

Any Workarounds: None found

Attachments:

Comments:

Hi Samuel, IE 11 is not supporting startsWith(). As a workaround goto <cfusion_home>\wwwroot\cf_scripts\scripts\ajax\package\ and add the following snippet to cfajax.js if (!String.prototype.startsWith) { Object.defineProperty(String.prototype, 'startsWith', { value: function(search, pos) { pos = !pos || pos < 0 ? 0 : +pos; return this.substring(pos, pos + search.length) === search; } }); } Thanks, Manas
Comment by Manas M.
30360 | February 21, 2019 08:43:48 AM GMT
This solved the issue. Thank you Manas.
Comment by Samuel E.
30380 | February 23, 2019 03:28:19 AM GMT
It appears this block did not get added to the official code base and you will have to manually add it after updating to hotfix 9 and 10 as well.
Comment by Eric R.
30506 | March 14, 2019 01:03:06 PM GMT
Yes Samuel absolutely correct. IE is expected to support this in its next releases. Closing this thread for now. Do let us know if you face any other issues. Thanks, Manas
Comment by Manas M.
30633 | April 16, 2019 11:39:59 AM GMT