tracker issue : CF-4034663

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

Javascript Error when cfchart type="html" is contained in a cflayout accordion

| View in Tracker

Status/Resolution/Reason: Closed/Won't Fix/TooManyChanges

Reporter/Name(from Bugbase): Scott Searles / Scott Searles (Scott Searles)

Created: 08/11/2015

Components: Documentation

Versions: 11.0

Failure Type:

Found In Build/Fixed In Build: CF11_Final /

Priority/Frequency: Normal / All users will encounter

Locale/System: English / Win 2012 Server x64

Vote Count: 0

Problem Description: When a cfchart with type=html is places within a cflayout accordion

Steps to Reproduce:

Actual Result: "Error processing JavaScript in markup for element <element_Name>:"

Expected Result: The charts to render

Any Workarounds: Using jpg or png instead, but that's not really a workaround since HTML charts is one of the features in CF11.

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

Watson Bug ID:	4034663

External Customer Info:
External Company:  
External Customer Name: Scott
External Customer Email:  
External Test Config: My Hardware and Environment details: Windows Server 2012 R2, IIS 8, CF 11 (11,0,05,293506 )

Attachments:

Comments:

You can also refer to Case# 186834837.
Comment by External U.
6283 | August 11, 2015 06:05:53 AM GMT
Hi Scott, Could you please post a standalone repro case I could try on my end? CF may be writing the JS in the wrong order. Thanks!, -Aaron
Comment by External U.
6284 | September 23, 2015 12:25:44 AM GMT
Can you provide some repro code.
Comment by Dattanand M.
6285 | September 23, 2015 11:45:11 PM GMT
Here are the steps to repro:- 1. Place the enclosed files in ColdFusion root. 2. Run the enclosed cflayout-source.cfm with ?cfdebug appended in the URL. For eg http://ip:port/cflayout-source.cfm?cfdebug 3. On page load, the below error occurs error:http: Error processing JavaScript in markup for element cflayout-source.cfm <cflayout name="theLayout" type="accordion"> <cflayoutarea position="center" title="MyTitle" name="theCfLayoutarea" source="./sourceFile.cfm" > </cflayoutarea> </cflayout> sourceFile.cfm <cfchart format="html" type="bar"> <cfchartseries > <cfchartdata item="2009" value=20> <cfchartdata item="2010" value=40> <cfchartdata item="2011" value=60> </cfchartseries> </cfchart>
Comment by Dattanand M.
6286 | September 24, 2015 10:30:53 PM GMT
Hi Scott and Dattanand, The following renders fine w/ no error. Not seeing any problem. <cfform> <cflayout type="accordion"> <cflayoutarea> <cfchart> <cfchartseries> <cfchartdata item="one" value="1000"> <cfchartdata item="two" value="2000"> <cfchartdata item="three" value="3000"> <cfchartdata item="four" value="4000"> </cfchartseries> </cfchart> </cflayoutarea> <cflayoutarea> <cfchart> <cfchartseries> <cfchartdata item="five" value="5000"> <cfchartdata item="six" value="6000"> <cfchartdata item="seven" value="7000"> <cfchartdata item="eight" value="8000"> </cfchartseries> </cfchart> </cflayoutarea> </cflayout> </cfform> Thanks!, -Aaron
Comment by External U.
6287 | September 26, 2015 09:10:02 PM GMT
This is a known issue with client side rendering of charts. We will be documenting this.
Comment by Dattanand M.
6288 | September 28, 2015 01:29:50 AM GMT
Hi Dattanand, What is a known issue? The code I posted below runs with no error in CF11 Update 5. So what will be documented? Thanks!, -Aaron
Comment by External U.
6289 | September 28, 2015 03:11:30 AM GMT
Hi Aaron, I had added steps to repro which was internal note, have marked it as External now. Thanks, Dattanand
Comment by Dattanand M.
6290 | October 01, 2015 03:58:55 AM GMT
Hi Dattanand, Thank you very much for the repro case. I've also confirmed the issue in CF10, so this does not look like a regression. Also, the ?cfdebug URL parameter wasn't required. Thanks!, -Aaron
Comment by External U.
6291 | October 15, 2015 01:37:38 PM GMT