I'm trying to build a reusable $.ajax method for my current application but I'm struggling to find solid information about how to build the data: section dynamically ...
Currently I'm looking at something similar to the function below, but I'm not sure how to implement this w/ jQuery 1.3.x (or if this type of thing was moved into the core?)
var extraParams = {
timestamp: +new Date()
};
$.each(options.extraParams, function(key, param)
{
extraParams[key] = typeof param == "function" ? param() : param;
});