$.handleError
(function($) {
(function($) {
jQuery.ajaxSetup({
jQuery.ajaxSettings.traditional
$.handleError = function(s, xhr, status, e) {

Override default jQuery error behavior
function
param {String} s description
param {Object} xhr xhr object
param {String} status Status message
param {Object} e Thrown error


(function($) {

Append charset to each ajax request that doesn't already have it


(function($) {

Extend jQuery to include a serializeObject function which uses $.serializeArray to serialize the form and then creates an object from that array http://stackoverflow.com/questions/1184624/serialize-form-to-json-with-jquery


jQuery.ajaxSetup({

Make caching the default behavior for $.getScript


jQuery.ajaxSettings.traditional = true;

Make sure that arrays passed in as arguments are properly encoded