When you're building a Web application, you might encounter a tricky situation when you want to prompt your end user for confirmation of an action. This involves writing a custom Ajax callback. But it also involves the client-side and server-side, which means you have to break the Ajax callback into multiple callbacks.
To help you get out of this jam, Selwyn takes an in-depth look at writing custom Ajax callbacks. To demonstrate, he put together a series of videos that show how a record in the Grid can be deleted. Before the record is deleted, a callback is made to the server to see if the end user is allowed to delete the record.
If the end user is authorized, then custom SQL commands are executed using AlphaDAO. You'll then see how to prompt the end user for confirmation after it has been determined that the end user is allowed to delete the record.