[SOLVED] Code Igniter with Fusion Chart |
[eluser]souri84[/eluser]
Hi everybody, I tested all over methods listed in the search part of the forum but none works ! And this method that I'm using provides from the website : http://kohaci.com/2010/10/26/update-fusi...niter.html I located FusionChart.js in a javascript directory and FusionCharts.php is renamed as FusionCharts_helper.php and is located in application/helpers directory. My controller : Code: class Chart extends CI_Controller { my view : Code: <!DOCTYPE html> My view source code after refreshing page is : Code: <!DOCTYPE html> the link of FusionCharts.js is ok like the swfUrl. The code seems to be ok but my page is blank ! What is the problem ? Best reguards Thibaut
[eluser]toopay[/eluser]
I look at your rendered page source code, and i think your javascript statement Code: var chart_div = new FusionCharts( { "swfUrl" : "http://localhost/FFA/Charts/Column3D.swf", "width" : "450", "height" : "250", "renderAt" : "divDiv", "dataFormat" : "xml", "id" : "div", "dataSource" : "<graph caption='Test' numberPrefix=' formatNumberScale='0' decimalPrecision='0'><set name='Product A' value='567500' color='AFD8F8' /><set name='Product B' value='815300' color='F6BD0F' /><set name='Product C' value='556800' color='8BBA00' /></graph>" } ).render();
[eluser]souri84[/eluser]
ok ! thanks but how can I do wrapp this line with script tag ? big thanks !
[eluser]toopay[/eluser]
at your view file Code: // remove '\'. Cant post script tag here.
[eluser]toopay[/eluser]
Hahaha, dont apologize for that. How your page source looks like now?
[eluser]toopay[/eluser]
Your page's source (CTRL+U on your browser), how its look like? Is there any difference with the first one you post above? |
Welcome Guest, Not a member yet? Register Sign In |