Categories | Question details Back To List | ||||||||
I would like to build the complete toolbar with a XML file and after loading the XML show only a few buttons. (Depending on the used webapplication) Now all created buttons are directly displayed. So during or after loading the XML no buttons should be displayed automatically. Is there a way to get this done?
Answer posted on Jun 25, 2007 11:08 You can use next code ( was tested with latest version of toolbar from scbr.com, not sure about previous versions ) toolbar.loadXML("config.xml",function(){ toolbar.hideButtons(); }); Answer posted by mc_hendriks on Jun 26, 2007 11:27 Sorry, but this doesn't work. When the loading of the XML file takes a long time during a slow internet connection than still all buttons are displayed. (I'm sure I am using the latest available verions.) Answer posted on Jun 26, 2007 15:34 Please check attached sample. Calling hideButtons just after loadXML will not work , because loadXMl is async operation, but you can use second param of loadXML as "after load" event handler. Attachments (1)
Answer posted by mc_hendriks on Jun 29, 2007 17:48 With your attached source files it worked. Thanks!! Answer posted by Andrei (Support) on Dec 01, 2014 07:18 To find more precise comments upon this issue, we can offer you read about javascript xml editor and javascript menu open source. |