I\'m using AJAX to load data from the server as needed. I\'m currently working on updating the server software to the latest version. One of the things I noticed that has ch
An example using ajaxPrefilter to extend posted data :
$.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
if (originalOptions.type === 'POST' || options.type === 'POST') {
var modifiedData = $.extend({},originalOptions.context.options.data,{ property:"val",property_two: "val" });
options.context.options.data = modifiedData;
options.data = $.param(modifiedData,true);
}
});