Majik Primer: MoI's Lighting Options and You!

 From:  Michael Gibson
5222.36 In reply to 5222.35 
Hi Dinos - re: edit name dialog, when you create the dialog it doesn't finish loading until after that so you can set global variables on the dialog's script environment by using the htmlWindow property off the returned dialog.

Then after you set it you probably want to call doModal() on it to get a result back, here's an example:

script:var dialog = moi.ui.createDialog('EditNameDialog.htm'); dialog.htmlWindow.nameval = 'test'; var result = dialog.window.doModal(); moi.ui.alert(result);

At some point this sequence should get bundled up into some kind of EditName() function in a script support library.

- Michael