The module provides AJAX command to refresh the current page of the view. This is API only module.
To get AJAX commands in PHP, you can use functions:
- views_refresh_ajax_command_refresh($view_selector); - refresh the current page of the view
- views_refresh_ajax_command_refresh_scroll($view_selector); - refresh the current page of the view and scroll to its top
- views_refresh_ajax_command_refresh($view_selector, TRUE); - load the first page of the view
- views_refresh_ajax_command_refresh_scroll($view_selector, TRUE); - load the first page of the view and scroll to its top
To refresh the view in JavaScript, you can trigger events:
- $(view_selector).trigger('views_refresh'); - refresh the current page of the view
- $(view_selector).trigger('views_refresh_scroll'); - refresh the current page of the view and scroll to its top
- $(view_selector).trigger('views_refresh_first'); - load the first page of the view
- $(view_selector).trigger('views_refresh_scroll_first'); - load the first page of the view and scroll to its top
The view must be configured to use AJAX in order to be refreshable by this module.
Supporting organizations:
Project information
227 sites report using this module
- Created by maximpodorov on , updated
Stable releases for this project are covered by the security advisory policy.
There are currently no supported stable releases.