Hi there,
I want to alter rupal.Views.Ajax.ajaxViewResponse in order to append loaded views page to previous one instead of replacing it, therefore something like endless scroll could be accomplished. Is this doable without patching this function?
Hi there,
I want to alter rupal.Views.Ajax.ajaxViewResponse in order to append loaded views page to previous one instead of replacing it, therefore something like endless scroll could be accomplished. Is this doable without patching this function?
Comments
Comment #1
Remon commentedIn other words, how could I accomplish something like endless scrolling without disabling current javascript behaviors?
Comment #2
Remon commentedComment #3
dawehnerSure this is possible.
Use a js file which is loaded after views file.
Than you can override the behaviour by just copy and paste the function code, and alter it to what you want, but you still have to write the implementation of what you want.
Comment #5
Remon commentedSorry for re-opening this, but frankly I don't think that this is an acceptable solution. I just want to be able to override the response callback. And I don't think it's quite plausible to miss all of views' ajax support for it.
Comment #6
dawehnerI guess you understood me wrong.
returns 'override foo is called';
So if you have a js file after views one you can change the stuff as you want.