Title:
Bug 80554:(Watson Migration Closure)New Feature Request: Now that cfscript is so much more syntax compatible with JavaScript, allow (cfscript src="/path/MyJavaScriptFile
| View in TrackerStatus/Resolution/Reason: Closed/Deferred/
Reporter/Name(from Bugbase): Steve Seaquist / Steve Seaquist (Steve Seaquist)
Created: 11/02/2009
Components: Language, CFSCRIPT
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Minor / Unknown
Locale/System: English / Platforms All
Vote Count: 0
Problem:
New Feature Request: Now that cfscript is so much more syntax compatible with JavaScript, allow (cfscript src="/path/MyJavaScriptFile.js"). This would allow for the construction of JS/CFScript compatible code for data validation, for example. The same JS file that's used for data validation on the browser could be used for cfscript validation on the server (if you're careful to code in a syntax-compatible way). Also, it might be nice to be able to map "window" to "Variables", so that you'd be using window.variablename, but CF understands it as Variables.variablename. But I'm not sure that you can say (cfset window = Variables) in CF, as that would create a struct that contains itself. So I'm not really sure what I would need to make scripts browser/server agnostic.
Method:
Not Applicable
Result:
Not Applicable
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3040373
External Customer Info:
External Company:
External Customer Name: Steve Seaquist
External Customer Email: 2D1302F645C4D3F1992015A9
External Test Config: 11/02/2009
Attachments:
Comments: