You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using jplist to add pagination and filtering to a hotel-listing page written in php. You can see an example here.
At the moment, I use a loop in php to create the list div, and the list-item divs within it.
It works OK, except that, initially, the php page loads and displays ALL the hotels (not just the first page) before jplist kicks in and replaces that with a paginated list of (in my case) 50 hotels.
I've looked at the various data-source options, but I'm not sure which, if any to choose and, if I do, if that will solve the problem.
From @Android63 on March 5, 2016 8:31
I'm using jplist to add pagination and filtering to a hotel-listing page written in php. You can see an example here.
At the moment, I use a loop in php to create the list div, and the list-item divs within it.
It works OK, except that, initially, the php page loads and displays ALL the hotels (not just the first page) before jplist kicks in and replaces that with a paginated list of (in my case) 50 hotels.
I've looked at the various data-source options, but I'm not sure which, if any to choose and, if I do, if that will solve the problem.
What is the best way to avoid this double render?
Here's my code:
Javascript:
HTML/PHP:
Copied from original issue: no81no/jplist#174
The text was updated successfully, but these errors were encountered: