DHTMLX Docs & Samples Explorer

Clear All

Source
<script type="text/javascript" src="../../codebase/dhtmlxcommon.js"></script>
<script type="text/javascript" src="../../codebase/dhtmlxtoolbar.js"></script>
<link rel="stylesheet" type="text/css" href="../../codebase/skins/dhtmlxtoolbar_dhx_skyblue.css"></link>
 
<div style="height: 150px;"><div id="toolbarObj"></div></div>
<input type="button" value="Load XML1" onclick="load('dhxtoolbar.xml');">
<input type="button" value="Load XML2" onclick="load('dhxtoolbar_button.xml');">
<script>
var toolbar;
function doOnLoad() {
    toolbar = new dhtmlXToolbarObject("toolbarObj");
    toolbar.setIconsPath("../common/imgs/");
    toolbar.loadXML("../common/dhxtoolbar.xml?etc=" + new Date().getTime());
}
function load(xml) {
    toolbar.clearAll();
    toolbar.loadXML("../common/" + xml + "?etc=" + new Date().getTime());
}
</script>