Reinitialize views ajax after embedding a view

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

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

grab and reuse AJAX request parameters in a view

Updated July 17, 2015 13:03 PM