Status/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Scott Brady / Scott Brady (Scott Brady)
Created: 03/26/2015
Components: Charting/Graphing
Versions: 11.0
Failure Type: Incorrect w/Workaround
Found In Build/Fixed In Build: CF11_Final /
Priority/Frequency: Normal / Some users will encounter
Locale/System: ALL / Mac 10.10 64 bit
Vote Count: 3
Problem Description:
When using type="HTML" in cfchart and using prototype.js, charts don't render due to a conflict in the automatically rendered "$(document).ready()"
Steps to Reproduce:
1) Create a page that includes the prototype.js library and has a <cfchart> tag with type="HTML"
2) Load the page
Actual Result:
Charts do not display, due to a JS error: TypeError: $(...).ready is not a function
Expected Result:
Charts would display
Any Workarounds:
Put the cfchart output into a variable (using <cfsavecontent>) and replace "$(document)" with "jQuery(document)" on the content before displaying the content.
I'm surprised the idea of there being conflicts with other libraries never came up in testing the new HTML charts.
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3959931
External Customer Info:
External Company:
External Customer Name: Scott
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: