DHTMLX Docs & Samples Explorer

Smart Refresh

Reload content from files.xml or files2.xml.
Source
<script src="../../codebase/dhtmlxdataview.js" type="text/javascript"></script>
<script src="../../codebase/types/ftypes.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxdataview.css">
<link rel="STYLESHEET" type="text/css" href="../../codebase/types/ftypes.css">  
<script>
var data;
function doOnLoad() {
    data = new dhtmlXDataView("data_container");
    data.types["ficon"].icons_src_dir = "../common/images";
    data.define("type", "ficon");
    data.load("../common/files_ext.xml");
}
</script> <div style="position:relative;"> <img src="../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> Reload content from <a href="javascript:void(0)" onclick="data.clearAll(); data.load('../common/files.xml')">files.xml</a> or <a href="javascript:void(0)" onclick="data.clearAll(); data.load('../common/files2.xml')">files2.xml</a>.<br> <div> </div>