Reinitialize views ajax after embedding a view

by miha64   Last Updated August 13, 2019 22:07 PM

I have installed an ajax_links_api module, which basically allows you to load pages via ajax. I got everything to work, however, there is an issue with views. In my view I have infinite scroll and exposed fitlers, thus the "Use Ajax" setting is enabled. Everything works fine when the view is loaded during a page load. Unfortunately, when I load it using the above-mentioned module ajax behavior is not reinitialized - the jquery-once-X-processed class is not reapplied to a view element. I believe that this behavior is not unique for this module and this problem should exist whenever one embeds a view via ajax. I wonder if there is some specific function that I should call in the ajax callback. Drupal.attachBehaviors() does not work for this one.

Tags : 7 views ajax


Related Questions


Updated July 17, 2015 13:03 PM

Updated April 15, 2016 08:03 AM

Updated July 24, 2015 14:03 PM

Updated August 24, 2015 18:03 PM

Updated March 08, 2017 08:07 AM