Welcome Guest, Not a member yet? Register   Sign In
OpenFlashChart 2 and Codeigniter
#31

[eluser]cicovy[/eluser]
I can't get it to work. I also tried to load the chart in an external view and it's not displaying on the page. I can see in the code that I have the call to the SWF object... but nothing on the page. Can someone help?

I included this in my view:

Code:
<h1>New Clients &lt;?php echo date('M-Y');?&gt;</h1>
        [removed]
            swfobject.embedSWF(
              "&lt;?= base_url()?&gt;assets/swf/open-flash-chart.swf", "test_chart",
              "40%", "200",
              "9.0.0", "expressInstall.swf",
              {"data-file":"&lt;?= urlencode(''.base_url().'ofc2/get_data_pie') ?&gt;"}
            );
        [removed]

This is in the source code.

Code:
<h1>New Clients Sep-2010</h1>
        [removed]
            swfobject.embedSWF(
              "http://localhost/assets/swf/open-flash-chart.swf", "test_chart",
              "40%", "200",
              "9.0.0", "expressInstall.swf",
              {"data-file":"http://localhost/ofc2/get_data_pie"}
            );
        [removed]

I also have this in the header:

Code:
[removed][removed]

If I load http://localhost/ofc2/show_chart/pie it's working great and I can see that http://localhost/pos/ofc2/get_data_pie json is right...

CI Forum automatically removed [removed][removed] ("removed")

Thanks!




Theme © iAndrew 2016 - Forum software by © MyBB