Required library edition:
Required library file: dhtmlxmenu.js
loads menu data from an xml file and calls onLoadFunction when loading is done
<script> menu.loadXML("path/to/file/file.xml", function(){ // will called if specified after menu will completely loaded }); // or onLoadFunction = function(){ // will called if specified after menu will completely loaded } menu.loadXML("path/to/file/file.xml", onLoadFunction); </script>