4 Replies Latest reply on Sep 14, 2010 5:14 AM by Marijan Tompa [tomaxxi]

    Problem writing XML after opening dialog

    Cyril Desmoinaux Level 1

      I'm using ScriptUI to create and update XML in a document (using Document.XMLElements methods).


      Before opening a Window with ScriptUI, I can read and write XML without problem.


      But after opening a Window containing some ScriptUI resources, I can only read the existing XML BUT NOT WRITE IT!


      My writing method is called from a button event :



      var myXMLRootNode = /* instanciated */


      myWindow.okButton = /* instanciated */


      myWindow.okButton.onClick = function() { myXMLRootNode.xmlElements.add(myTag, object) };





      It looks like the onClick callback works OK for reading (I can recover all existing values without problem) but not for writing.


      Any idea ?