In this example, javascript, jquery (blockUI), and Ajax calls are made to create a dialog box with three buttons in it. If any of the buttons are pressed, the dialog box is removed.

By pressing the "Show dialog box" button, the blocking dialog box appears and all controls on the page are blocked.

Pressing The "Show code" button dumps the contents of this file.