0

I build a view page and have exposed filter, when I change any filters I use ajax to fetch data and re-build the content area. The ajax URL looks like

views/ajax

I want to change the above URL to some external middleware something like below

http://www.example.com/getData

with the existing post data. Is it possible?

1 Answer 1

1

You can try changing the settings data on the ajaxSend event.

$(document).ajaxSend(function(event, request, settings) {
  settings.url = '/views/ajax';
});

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.