View Manager Script

 From:  Michael Gibson
10028.25 In reply to 10028.19 
Hi Teddy, for renaming there is an "Edit name" dialog that you can use if it would be more convenient.

That goes like this:

code:
    var dlg = moi.ui.createDialog( 'EditNameDialog.htm', 'resizeable,defaultWidth:26em,fixedHeight' );

    /* If you want to initialize the starting name text do this: */
    dlg.htmlWindow.nameval = 'initname';

    var result = dlg.window.doModal();
    if ( result !== -1 ) /* return value of -1 means canceled */
    {
          /* new name in result */
    }


- Michael