In a ajax-driven site I have added some default data using the ajaxSetup, ala this:
var revision = \'159\';
$.ajaxSetup({
dataType: \"text json\",
co
I think what you might be able to use is beforeSend.
var revision = '159';
$.ajaxSetup({
dataType: "json",
contentType: "application/x-www-form-urlencoded; charset=UTF-8",
beforeSend: function(jqXHR, settings) {
if(settings.type == "GET")
settings.data = $.extend(settings.data, { ... });
return true;
}
});
jqXHR documentation
BeforeSend documentation as well as your settings available
I coded this blind, so I hope it gets you going in the right direction.