Search code examples
firefox-addonxulfirefox-addon-sdk

How to interact with Tree in XUL window?


I need something to interact with Tree control on XUL form. How to do this?

I have main XUL window with Three(something contains), by clicking on the button I show the dialog(adding new tree item).

Need know, what is the selected item of tree and got some info from it, and send this info to the dialog form.

How to from this dialog, get Tree from parent Window?


Solution

  • In the dialog code, you can use window.opener to refer to parent window.