kang2oon / jsgantt

Automatically exported from code.google.com/p/jsgantt
0 stars 0 forks source link

Nothing Displayed #109

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Compilation make prefect, but nothing is displayed no errors, my div is empty. 
I dont know why i copy examples and it nothing change.

<link rel="stylesheet" type="text/css" href="jsgantt/jsgantt.css"/>
<script type="text/javascript" language="javascript" 
src="jsgantt/jsgantt.js"></script>

<div style="position:relative" class="gantt" id="GanttChartDIV">        </div>

<script type="text/javascript">
var g = new JSGantt.GanttChart('g',document.getElementById('GanttChartDIV'), 
'day');

    g.setShowRes(1); // Show/Hide Responsible (0/1)
    g.setShowDur(1); // Show/Hide Duration (0/1)
    g.setShowComp(1); // Show/Hide % Complete(0/1)
    //g.setCaptionType('Resource');  // Set to Show Caption (None,Caption,Resource,Duration,Complete)

    g.AddTaskItem(new JSGantt.TaskItem(1,   'Define Chart API',     '',          '',          'ff0000', 'http://help.com', 0, 'Brian',     0, 1, 0, 1));
    g.AddTaskItem(new JSGantt.TaskItem(11,  'Chart Object',         '2/20/2008', '2/20/2008', 'ff00ff', 'http://www.yahoo.com', 1, 'Shlomy',  100, 0, 1, 1));

 g.Draw();  
    g.DrawDependencies();

</script>

Original issue reported on code.google.com by M.Bu...@gmail.com on 3 Jan 2012 at 10:20

GoogleCodeExporter commented 9 years ago
eveyrthing is ok when i add to <script language="javascript">

Original comment by M.Bu...@gmail.com on 4 Jan 2012 at 1:48