I can not figure out why the Gantt will not save my link connections. The tasks save correctly via the dataprocessor but the links will not. I get the following error when ever I drag a dependency connection:
Error type: LoadXML
Description: Incorrect XML
Here is my code:
Work Orders<style type="text/css" media="screen">
html, body{
margin:0px;
padding:0px;
height:100%;
overflow:hidden;
}
</style>
gantt.config.xml_date="%Y-%m-%d %H:%i:%s";
gantt.config.date_grid = "%Y-%m-%d %H:%i:%s";
gantt.config.columns = [
{name:"text", label:"Work Order", width: 200 },
{name:"Assignto", label:"Assigned", map_to:"Assignto", align: "center", width:120 },
{name:"progress", label:"Progress", align: "center", template:function(obj){
return Math.round(obj.progress*100)+ "%"} }
];
gantt.config.grid_width = 400;
gantt.init("gantt_here");
gantt.load('php/work_gantt_test.php');
var dp=new dataProcessor("php/work_gantt_test.php");
dp.init(gantt);
</script>
Here is my work_gantt_test.php file
<?php include("accesscontrol.php"); include ('../codebase/connector/gantt_connector.php'); mysql_select_db("ABCSupport"); $gantt = new JSONGanttConnector($db); $gantt->render_links("gantt_links","id","source,target,type"); $gantt->render_sql("Select * from gantt_tasks","id","start_date,duration,text,progress,sortorder,parent"); ?>accesscontrol.php simply logs in to the database. The tasks are updated correctly when dragged. Links however produce the error. I did have the working correctly at one point but can not figure out what has changed to make this not work.