<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="DHTMLX/dhtmlxDataView/codebase/dhtmlxdataview.js" type="text/javascript"></script>
<script src="DHTMLX/dhtmlxDataView/codebase/types/ftypes.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="DHTMLX/dhtmlxDataView/codebase/dhtmlxdataview.css">
<link rel="STYLESHEET" type="text/css" href="DHTMLX/dhtmlxDataView/codebase/types/ftypes.css">
</head>
<body>
<script>
function doOnLoad() {
data = new dhtmlXDataView("data_container");
data.define("type", "ficon");
data.customize({
icons_src_dir: "DHTMLX/dhtmlxDataView/samples/common/images"
});
data.load("DHTMLX/dhtmlxDataView/samples/common/files_ext.xml");
}
try{
doOnLoad();
}catch(e) {
alert(e);
}
</script>
<div style="position:relative;">
<img src="DHTMLX/dhtmlxDataView/samples/common/images/samples_frame.gif" width="436" height="513" alt="" border="0">
<div id="data_container" style="width:396px;height:400px;overflow:hidden;position:absolute;top:65px;left:20px;border:0px solid red;"></div>
</div>
</body>
</html>
The above code is basically the initialisation sample for the dhtmlXDataView folder.
When I run this example,This is what i get:
As you can see Icons are not present.
Adding the try catch block,I get the error message:
ReferenceError: dhtmlXDataView is not defined
But here again I found that the file “dhtmlxdataview.js” has the definition for this object.
Has any of you faced similar problems?Please help me out…