BuMp
asked on
Coldfusion 8 - chchart not working using Coldfusion.navigate
After upgrading to CF8 and changing from frames to cflayout I know cant use cfgraph. I've simplified the code to show what happens. First page (home.cfm) has cflayout areas and one of them has a link that navigates to chart.cfm targeting a specifif layout area. If I run chart.cfm by itself the chart shows up, but with the Coldfusion.navigate link, I get a generic error "Error processing javascript in markup". It seems cfchart doesnt work when linked to via Coldfusion.navigate.
Here's the code:
Here's the code:
home.cfm:
<cflayout type="border" name="layoutborder">
<cflayoutarea name="Center" position="center">
<a href="#" onclick="ColdFusion.navigate('chart.cfm','Center')">chart</a>
</cflayoutarea>
</cflayout>
chart.cfm:
<cfchart>
<cfchartseries type="line" serieslabel="2008">
<cfchartdata item="January" value="100">
</cfchartseries>
</cfchart>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
It is a common issue with these kinds of AJAX features, in certain browsers all the external javascript files need to be imported by the main page to work properly. This is why Adobe created the cfajaximport tag.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_2.html
However they didn't have the cfchart tag as one of the options for the" tags" attribute, so instead I browsed directly to the chart.cfm, viewed the source and found the script tag. Then I put that into the home.cfm and everything worked fine.
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_a-b_2.html
However they didn't have the cfchart tag as one of the options for the" tags" attribute, so instead I browsed directly to the chart.cfm, viewed the source and found the script tag. Then I put that into the home.cfm and everything worked fine.
ASKER