Extend cakephp's Postlink with so that the form is submitted via ajax
$(selector).ajaxPostLink({
errorCallback: function(errorMessage) {},
successCallback: function(message, element) {},
errorMessage: 'defaulterrormessage'
});
- successCallback: function executed, after servers response = true
- errorCallback: function executed, on error