I am trying to grab the requested AJAX URL generated by a plugin to use in my callback. My intention is, to say in plain English: If the current requested AJAX URL matches attribute href in a certain selector already available in the page, then do something.
$(selector).myplugin({settings},function(){
if (currentAjaxURL == $(another selector).attr('href') ) {
// do something
}
});
Is there any way for jQuery to get currentAjaxURL via the active current requested URL? Any hint would be very much appreciated.
Thanks