ajax options
var options = { url: '/server/action', data: {}, method: 'get', success: function(response) {}, error: function(jqXHR, status, error) {} }; $.ajax(options);