Sign in to follow this  
mie131085

Drilldown Php Class Problem

Recommended Posts

Hi There,

 

i'm right now facing some problem with my own fusionchart development

 

the problem that i'm facing right now is this.

 

when i called this function

$FC->addChartData($myObjTahun->jumlah, "label=" .$myObjTahun->tahun. ";link=http://newchart-xmlurl-Example.php?table=$rptCode&tahun=$myObjTahun->tahun");

 

I'm facing the problem once i'm on click event on one of the link from the generated link that is embedded on the chart xml data.

 

when i'm right click on the sourcecode of the page i found out that the link is now somewhat changed, that is :

 

<set  value='372' label='2012' link='http://newchart-xmlurl-Example.php?table%3dpk8%26tahun%3d2012'  />

 

notice that the some of the strings have been replaced. that is %3d and %26 . Hope you can me help out on this one..

 

 

Thanks

Edited by mie131085

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Could you please try once by URL encoding the link, before passing it to the "link" attribute in the "addChartData()" function of FusionCharts PHP Class?

 

Ref. Code:

$FC->addChartData($myObjTahun->jumlah, "label=" .$myObjTahun->tahun. ";link=" . urlencode("http://newchart-xmlurl-Example.php?table=$rptCode&tahun=$myObjTahun->tahun"). ")";

 

Hope this helps!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this