I'm using ajaxSend() to intercept requests originating from a jQuery plugin on my page and then filtering irrelevant requests using the ajaxOptions url.
$('some-selector').ajaxSend(function(e, xhr, settings) {
var ajaxUrl = settings.url;
if (ajaxUrl.search('targetpage.aspx') == 0) {
//need to add an additional parameter to my request here
}
}
I need to insert an additional parameter into relevant requests. Is it possible to modify the request at this point?