Here's some pseudocode I want to use when the user clicks my deleteCustomer button: check that the user really wants to delete the customer ... AJAX call to retrieve Customer object .onsuccess (AJAX ...