Sign in to follow this  
Lookup

Updating Charts Error

Recommended Posts

Hello to everybody,

 

I'm new at FC but also new at PHP, JS, HTML ..... I'm an Italian RPG programmer with AS400 and I'm moving to PHP programming in order to modernize the real old-style AS400 black&green screen.

I have made little procedures and now I'm moving to hard ones, like the one I'm implementing now. It's a department scheduler of job orders where you have a list of new job orders and 4 other list of existing job orders divided into weeks. The program allows you to drag and drop the job orders into the column of the week you want to produce it, and it works perfectly. I just wanted to add a gauge at the top of the columns that shows you the amount of minutes that is available. This works perfectly during the 1st output of the html. When I move a job order to another column I get an error : this.setattribute is not a function.

the HTML part is :

 

<div id="chartdiv1" align="center">FusionGadgets

<script type="text/javascript">

var myChart1 = new FusionCharts("<?=_BASEURL?>FusionCharts/AngularGauge.swf", "myChartId1", "160", "100", "0", "0");

myChart1.setDataXML("<?php echo $this->xmlweek[1]?>");

myChart1.render("chartdiv1");

</script>

</div>

(then there are 3 other charts equal to this one but with different ids)

 

the JS part is :

 

var rsp=http.responseText;

var xml=rsp.split('|');

var chartReference = FusionCharts('myChartId1');

chartReference.setDataXML("<?php echo $this->xml[0]?>");

 

this JS is called when you move a job order from a column to another and the PHP creates the text where is stored the XML.

 

Hope I was clear, and hope someone can correct my errors !!!

Thanks to everybody could help me.

 

Luca

Share this post


Link to post
Share on other sites
Guest Angie

Hi,

 

Welcome to FusionCharts Forum!smile.gif

 

We are glad to know that you have managed to solve your problem.

 

Keep FusionCharting!biggrin.gif

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