Required library edition:
Required library file: dhtmlxmenu.js
loads menu data from an xml string and calls onLoadFunction when loading is done
<script> onLoadFunction = function(){ // will be called if specified } menu.loadXMLString("<menu><item....>", onLoadFunction); </script>