Elgg 4.1.4
Site Setting : Default pagination behaviour of lists : Append new list data before or after the list (automatically if scrolled into view)
Hi everyone,
I am working on a ajax search module.
The module is displayed on a view as you can see in the attached file.
When I click on the "search" an ajax request is sent and the response replace the current displayed on the view(elgg_list_entities).
The search module works as expected, but after performing a search, then the scroll, the data appends to the list does not match the search criteria.
The previous data displayed when the view was first loaded is appended to the list.
How can I ensure that the data appended to the list matches the search criteria (came from the result of the search module)?
regards,
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Jerome Bakker@jeabakker

Jerome Bakker - 1 like
- Hermand Pessek@rheman

Hermand Pessek - 0 likes
You must log in to post replies.If you pass 'url_fragment' to your list_entities with your query params it should help.
https://github.com/Elgg/Elgg/blob/94a075687edb5bdf71d7a28c016ca12856e4efa3/views/default/navigation/pagination.php#L17
Or pass 'use_referer' => false to your list_entities
https://github.com/Elgg/Elgg/blob/94a075687edb5bdf71d7a28c016ca12856e4efa3/views/default/navigation/pagination.php#L18
Thanks a lot