home *** CD-ROM | disk | FTP | other *** search
/ Practical Internet Web Designer 86 / PIWD86.iso / pc / contents / dreamweaver / software / dwmx2004.exe / Disk1 / data1.cab / Configuration_En / Commands / ConfirmNoDS.js < prev    next >
Encoding:
JavaScript  |  2003-09-05  |  1002 b   |  31 lines

  1. // Copyright 2001, 2002, 2003 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.    }
  24.    window.close();
  25. }
  26.  
  27. function initialize()
  28. {
  29.      // Use the right icon for the platform.
  30.      document.confirmIcon.src = ICON_URL;
  31. }