India seo web development website designer freelance

How commands work

When a user clicks a menu that contains a command, the following events occur:

  1. calls the canAcceptCommand() function to determine whether the menu item should be disabled. If canAcceptCommand() returns false , the command is dimmed in the menu, and the procedure stops. If canAcceptCommand() returns true , the procedure can continue.
  2. The user selects a command from the menu.
  3. calls the receiveArguments() function, if defined, in the selected Command file to let the command process any arguments that are passed from the menu item or from the function .runCommand() .
  4. calls the commandButtons() function, if defined, to determine which buttons appear on the right side of the Options dialog box and what code should execute when the user clicks the buttons.
  5. scans the Command file for a FORM tag. If a form exists, calls the windowDimensions() function, which sizes the Options dialog box that contains the BODY elements of the file. If windowDimensions() is not defined, automatically sizes the dialog box.
  6. If the Command file's BODY tag contains an onLoad handler, executes it (whether or not a dialog box appears). If no dialog box appears, the remaining steps do not occur.
  7. The user selects options for the command. executes event handlers that are associated with the fields as the user encounters them.
  8. The user clicks one of the buttons that is defined by commandButtons() .
  9. executes the associated code. The dialog box remains visible until one of the scripts in the command calls window.close() .

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117

India web developer website development India