Skip to main content
March 25, 2008
Question

cfchart inside a cfdiv bind

  • March 25, 2008
  • 2 replies
  • 824 views
Coldfusion 8, IE 6.0. This is only happening in IE, not in Firefox. I had to add this code to get the cfdiv call to work at all:

<script type="text/javascript" charset='utf-8' src='/CFIDE/scripts/CF_RunActiveContent.js'></script>

The code will execute, but it breaks out of its div and takes over the whole area. Note, the code below is a scaled down example. When it runs in Firefox, "Testing 8" appears on the left, with the chart on the right. When it runs in IE, just the chart appears. Any insight into this would be greatly appreciated!


main1.cfm
<script type="text/javascript" charset='utf-8' src='/CFIDE/scripts/CF_RunActiveContent.js'></script>

<cfoutput>
<html>
<cfajaximport tags="cfform" />

<body>
<h2>Test</h2>
<div style="float:left;width:150px;">
#repeatString("Testing Testing Testing",8)#
</div>

<cfdiv bind="url:results.cfm"
id="t1"
name="t1"
style="float:left;width:300px">h</cfdiv>

</body>

</html>
</cfoutput>

results.cfm:
<cfoutput>Testing.

<cfchart pieslicestyle="sliced" chartheight="200"
chartwidth="240">

<cfchartseries type="pie">
<cfchartdata item="Item 1" value="20">
<cfchartdata item="Item 2" value="30">
<cfchartdata item="Item 3" value="50">
</cfchartseries>
</cfchart><br>
</cfoutput>
This topic has been closed for replies.

2 replies

March 25, 2008
Thanks for the suggestion, I will try downloading IE 7.0 tonight and see if that helps. The "poll.cfm" should be "results.cfm", my mistake.
Participating Frequently
March 25, 2008
I have tried the code with another page instead of poll.cfm and it looks like it is working in FF3b4 and IE7(7.0.5730.11).

What about poll.cfm?