tracker issue : CF-4126524

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

Javascript closure causes cfml error in cfclient

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/CannotReproduce

Reporter/Name(from Bugbase): Dave Ferguson / Dave Ferguson (Dave Ferguson)

Created: 03/09/2016

Components: Mobile Support

Versions: 2016

Failure Type: Unspecified

Found In Build/Fixed In Build: Alpha3_v12 /

Priority/Frequency: Trivial / Unknown

Locale/System: English / Mac All

Vote Count: 0

The code below will cause a cfml error when inside cfclient tag.  However, the code is valid.  Furthermore it is javascript and shouldn't be processed by at all.

<cfclient>
	<cfscript>
	 a  = $('li.list-group-item-success').map(function() { return this.value }).get().toString();s		    	
    </cfscript>	
</cfclient>
 


Invalid CFML construct found on line 6 at column 82.

ColdFusion was looking at the following text:
}

The CFML compiler was processing:

A script statement beginning with return on line 6, column 64.
An expression beginning with $, on line 6, column 15.This message is usually caused by a problem in the expressions structure.
A script statement beginning with a on line 6, column 10.
A cfscript tag beginning on line 5, column 10.
 
The error occurred in /Users/dferguson/Documents/Projects/TKDScoringPro/scratch/test.cfm: line 6
4 : <cfclient>
5 : 	<cfscript>
6 : 	 a  = $('li.list-group-item-success').map(function() { return this.value }).get().toString();
7 : 		    	
8 :     </cfscript>

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

Watson Bug ID:	4126524

External Customer Info:
External Company: Disney IT
External Customer Name: Dave Ferguson
External Customer Email: dave@dkferguson.com
External Test Config:

Attachments:

Comments:

Adding BUG AUDIT TRAIL ********action: updated fieldName: Date Closed newValue: 2015-12-21 21:57:57.0 oldValue: Blank oprid: prk recordName: RQ_DEFECT timpestamp: 2015-12-22 05:57:57.0 action: updated fieldName: State newValue: Closed oldValue: Open oprid: prk recordName: RQ_DEFECT timpestamp: 2015-12-22 05:57:57.0 action: updated fieldName: Closed By newValue: prk oldValue: Blank oprid: prk recordName: RQ_DEFECT timpestamp: 2015-12-22 05:57:57.0 action: updated fieldName: Owner newValue: Blank oldValue: prk oprid: prk recordName: RQ_DEFECT timpestamp: 2015-12-22 05:57:57.0 action: updated fieldName: Reason newValue: CannotReproduce oldValue: PRNeedInfo oprid: prk recordName: RQ_DEFECT timpestamp: 2015-12-22 05:57:57.0 action: updated fieldName: Status newValue: Withdrawn oldValue: ToTrack oprid: prk recordName: RQ_DEFECT timpestamp: 2015-12-22 05:57:57.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: PRHaveInfo oprid: prk recordName: RQ_DEFECT timpestamp: 2015-11-26 17:15:29.0 action: updated fieldName: Status newValue: ToTrack oldValue: ToTrack oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-11-26 08:59:47.0 action: updated fieldName: State newValue: Open oldValue: Open oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-11-26 08:59:47.0 action: updated fieldName: Reason newValue: PRHaveInfo oldValue: PRNeedInfo oprid: prerelease recordName: RQ_DEFECT timpestamp: 2015-11-26 08:59:47.0 action: updated fieldName: Reason newValue: PRNeedInfo oldValue: Blank oprid: prk recordName: RQ_DEFECT timpestamp: 2015-11-26 07:26:58.0 action: updated fieldName: Status newValue: ToTrack oldValue: Unverified oprid: prk recordName: RQ_DEFECT timpestamp: 2015-11-26 07:26:58.0 action: updated fieldName: Owner newValue: prk oldValue: hkallae oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-11-26 04:45:46.0 action: updated fieldName: QE Assigned newValue: prk oldValue: hkallae oprid: vmannebo recordName: RQ_DEFECT timpestamp: 2015-11-26 04:45:46.0
Comment by CFwatson U.
3862 | March 09, 2016 02:27:52 AM GMT
Added By:prk Note Added: Apologize... its my bad, I have not enabled prerelease flag, its enabled now. Date Added :2015-11-26 17:15:31.0 Added By: PreRelease User User Name:Dave Ferguson Note Added: This bug has been updated to "need more information" . Any chance you want to let me know what info you need? Date Added :2015-11-26 08:59:47.0 Added By:prk Note Added: There was semicolon missing in the return statement, I added that and not getting any compilation error. Below is the code: <cfclient> <cfscript> a = $('li.list-group-item-success').map(function() { return this.value; }).get().toString(); </cfscript> </cfclient> If your still facing the issue, please attach the sample snippet. Date Added :2015-11-26 07:27:01.0 Added By: PreRelease User User Name:Dave Ferguson Note Added: Entered Bug. Date Added :2015-11-21 18:48:24.0
Comment by CFwatson U.
3863 | March 09, 2016 02:27:54 AM GMT