Lookup

Members
  • Content count

    2
  • Joined

  • Last visited

Everything posted by Lookup

  1. 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
  2. Updating Charts Error

    I have found the error myself !!!! there wasn't the registerWithJS = 1 ...... thanks anyway and see you soon Luca