Note that there are some explanatory texts on larger screens.

plurals
  1. PODhtmlx Gantt Chart - Minor Issue
    primarykey
    data
    text
    <p>I've set up DHTMLX Gantt Chart (http://dhtmlx.com/docs/products/dhtmlxGantt/index.shtml). I'm loading raw xml data as opposed to an xml file.</p> <p>However, I get an alert saying 'Cannot Parse This XML String'. But when I click 'OK' the Gantt Chart appears as normal.</p> <p>Below is the code I'm working with:</p> <pre><code>var $_ = jQuery; $_(document).ready(function() { window.createChartControl = function(htmlDiv1){ var ganttChartControl = new GanttChart(); ganttChartControl.setImagePath("../../../../lib/plugins/html/gui/dhtmlx/gantt/1.3/codebase/imgs/"); ganttChartControl.create(htmlDiv1); var xml_data_str = '&lt;projects&gt;&lt;project id="1" name="Project 1" startdate="2006,12,14"&gt;&lt;task id="1"&gt;&lt;name&gt;Task 1 of Project 1&lt;/name&gt;&lt;est&gt;2006,12,14&lt;/est&gt;&lt;duration&gt;20&lt;/duration&gt;&lt;percentcompleted&gt;20&lt;/percentcompleted&gt;&lt;predecessortasks&gt;&lt;/predecessortasks&gt;&lt;childtasks&gt;&lt;task id="11"&gt;&lt;name&gt;Sub Task 1 of Task 1 of Project 1&lt;/name&gt;&lt;est&gt;2006,12,14&lt;/est&gt;&lt;duration&gt;5&lt;/duration&gt;&lt;percentcompleted&gt;10&lt;/percentcompleted&gt;&lt;predecessortasks&gt;&lt;/predecessortasks&gt;&lt;childtasks&gt;&lt;/childtasks&gt;&lt;/task&gt;&lt;task id="12"&gt;&lt;name&gt;Sub Task 2 of Task 1 of Project 1&lt;/name&gt;&lt;est&gt;2006,12,15&lt;/est&gt;&lt;duration&gt;10&lt;/duration&gt;&lt;percentcompleted&gt;20&lt;/percentcompleted&gt;&lt;predecessortasks&gt;11&lt;/predecessortasks&gt;&lt;childtasks&gt;&lt;/childtasks&gt;&lt;/task&gt;&lt;/childtasks&gt;&lt;/task&gt;&lt;/project&gt;&lt;project id="2" name="Project 2" startdate="2006,12,17"&gt;&lt;task id="2"&gt;&lt;name&gt;Task 1 of Project 2&lt;/name&gt;&lt;est&gt;2006,12,17&lt;/est&gt;&lt;duration&gt;60&lt;/duration&gt;&lt;percentcompleted&gt;20&lt;/percentcompleted&gt;&lt;predecessortasks&gt;&lt;/predecessortasks&gt;&lt;childtasks&gt;&lt;task id="21"&gt;&lt;name&gt;Sub Task 1 of Task 1 of Project 2&lt;/name&gt;&lt;est&gt;2006,12,17&lt;/est&gt;&lt;duration&gt;40&lt;/duration&gt;&lt;percentcompleted&gt;20&lt;/percentcompleted&gt;&lt;predecessortasks&gt;&lt;/predecessortasks&gt;&lt;childtasks&gt;&lt;/childtasks&gt;&lt;/task&gt;&lt;/childtasks&gt;&lt;/task&gt;&lt;/project&gt;&lt;/projects&gt;'; ganttChartControl.loadData(xml_data_str, false, false); } window.createChartControl('chart_dhtmlx_gantt_2'); }); </code></pre> <p>The relevant bit is the XML data. Is there something wrong with the way I've set it up?!</p> <p>Kindly assist.</p> <p>Thanks.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload