So Ive seen AJAX syntax done two different ways. Seems like on the boards here everyone uses the format like this:
$.ajax({
type: 'POST',
url: 'mm.php',
data: { color: color},
success: function (res) {
},
error: function (jqXHR) {
}
But my text uses
$.post('mm.php', data, processResponse);
Is there a difference and what is preffered?
then.