Menu item per script after xml load

Hello,

I have loaded a menu using loadXML which works fine.

Is it possible to define additional menu items per script (e.g addNewSibling) after the XML is loaded?

Hello
Yes, you can do it.
But pay attention, that you must do it in aftercall:

  1. using onXLE event:
    menu.attachEvent(“onXLE”, function(){});
  2. directly in aftercall:
    menu.loadXML(“path/to/file/file.xml”, function(){to_add_here})