[SOLVED] Code Igniter with Fusion Chart - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: [SOLVED] Code Igniter with Fusion Chart (/showthread.php?tid=41612) Pages:
1
2
|
[SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [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-fusioncharts-free-codeigniter.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 [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]toopay[/eluser] Did your swfUrl pointing to the right path? [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]souri84[/eluser] yeah, it's the right path ! [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [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(); [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]souri84[/eluser] ok ! thanks but how can I do wrapp this line with script tag ? big thanks ! [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]toopay[/eluser] at your view file Code: // remove '\'. Cant post script tag here. [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]souri84[/eluser] it seems to be wrong... sorry :-( [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]toopay[/eluser] Hahaha, dont apologize for that. How your page source looks like now? [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [eluser]souri84[/eluser] it's the same... blanck ! ;-) [SOLVED] Code Igniter with Fusion Chart - El Forum - 05-12-2011 [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? |