DHTMLX Docs & Samples Explorer

loadXML(xmlFile, onLoadFunction)

Required library edition: This method works with any edition of DHTMLX library
Required library file: dhtmlxmenu.js

loads menu data from an xml file and calls onLoadFunction when loading is done

  • xmlFile - an xml file with webmenu data
  • onLoadFunction - a function that is called after 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>