Summary of confirmCallback
Is a replacement for Javascript native confirm function
Beware that native confirm is synchronous by nature (will block
browser waiting an answer from user, but that this is emulating the confirm behaviour
by using callbacks functions when user presses 'Yes' or 'No' buttons.
static public jsConfirmCallback ( $msg, $title, $yesCallback = null, $noCallback = null ) | ||
$msg | string message to be shown | |
$title | string title for dialog box | |
$yesCallback | string function that will be called when 'Yes' is pressed (default null) | |
$noCallback | string function that will be called when 'No' is pressed (default null) |