Use the confirmCommands function of the response object:
function confirmCommands($iCmdNumber, $sMessage)
iCmdNumber (integer) The number of commands to skip upon cancel.
sMessage (string) The message to display to the user.
The command to execute is the first AFTER the confirmCommands.
1. $resp->confirmCommands(1,'Delete the Record?')
It displays a confirm box. If the user clicks cancel, nothing happens. If the user clicks OK the xajax function is called.
If you ever stop learning you may as well dig a hole, crawl in and pull the top over yourself.