Hi there, I have problems loadin data.xml file in my aspx page. I have the following aspx page:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Gantt.aspx.cs" Inherits="PPLClienteWeb.gantt.Gantt" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Load from XML</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../App_Themes/Metro/dhtmlxgantt.css" type="text/css" media="screen" />
<script type="text/javascript" src="dhtmlxcommon.js"></script>
<script type="text/javascript" src="dhtmlxgantt.js"></script>
</head>
<body>
<form id="form1" runat="server">
<script type="text/javascript" language="JavaScript">
/*<![CDATA[*/
function createChartControl(htmlDiv1) {
// Initialize Gantt data structures
// Create Gantt control
var ganttChartControl = new GanttChart();
// Setup paths and behavior
ganttChartControl.setImagePath("imgs/");
ganttChartControl.showContextMenu(false);
// Build control on the page
ganttChartControl.create(htmlDiv1);
// Load data structure
ganttChartControl.loadData("data/data.xml", true, true);
}
/*]]>*/
</script>
<div style="width:950px; height:620px; position:relative" id="GanttDiv" runat="server"></div>
<script type="text/javascript">
createChartControl('GanttDiv');
</script>
</form>
</body>
</html>
data/data.xml is in the same root
Thanks in advance.