0

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.