home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Experimental / DialogTest.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  514 b   |  23 lines

  1. !!Script
  2.  
  3. var gOutput = getOutput();
  4.  
  5. function DoCommand()
  6. {
  7.     var editor = getActiveEditor();
  8.     if (editor)
  9.     {
  10.         editor.save();
  11.         var path = editor.path;
  12.         // Let the scripts in DHTML have full access 
  13.         // to the objects in the IDE. To do this we just pass
  14.         // the Host object to IE4. In a DHTML page then we can assess
  15.         // any object defined in the IDE by starting with the Host object.
  16.         var result = showHTMLDialog(path, Host);
  17.         gOutput.writeLine("Result: " + result);
  18.     }
  19. }
  20.  
  21. !!/Script
  22.  
  23.