home *** CD-ROM | disk | FTP | other *** search
/ Flash MX Savvy / FlashMX Savvy.iso / pc / WIN / UltraDev / UltraDev_Trial.exe / Disk1 / data1.cab / Configuration_En / Commands / ConfirmDS.js < prev    next >
Encoding:
JavaScript  |  2000-12-11  |  1.0 KB  |  32 lines

  1. // Copyright 1999 Macromedia, Inc. All rights reserved.
  2. var PLATFORM = navigator.platform;
  3. var ICON_URL = (PLATFORM == "Win32") ? "../Shared/MM/Images/alertIconWin.gif" : "../Shared/MM/Images/yield28x28.gif";
  4.  
  5. function isDOMRequired() {
  6.     // Return false, indicating that this object is available in code view.
  7.     return false;
  8. }
  9.  
  10. function render() {
  11.    var btnList="", i;
  12.    document.msg.innerHTML = arguments[0]; //Insert the question
  13.    if (arguments.length > 1) {
  14.      for (i=1; i<arguments.length; i++)
  15.        btnList += "<input type='button' value='"+arguments[i]+"' onClick='setResult(\""+arguments[i]+"\")'>";
  16.      document.btns.innerHTML = btnList;
  17.    }
  18. }
  19.  
  20. function setResult(result) {
  21.    if (typeof MMNotes != 'undefined') { // Set values off of MMNotes object if it exists.
  22.      MMNotes.Confirm_RESULT = result;
  23.      MMNotes.Confirm_DONOTSHOW = document.cbDoNotAsk.checked;
  24.    }
  25.    window.close();
  26. }
  27.  
  28. function initialize()
  29. {
  30.      // Use the right icon for the platform.
  31.      document.confirmIcon.src = ICON_URL;
  32. }