Matt Simoncavage
Posts: 0
Joined: Thu Jun 04, 2015 7:10 pm

Infinite Scroll with No Results message

Hi, I have an infinite scroll incorporated into one of my lists (shown here: https://blog.appery.io/2015/07/how-to...) It works great. In this same service, I'm using a no results message as a service complete javascript event:

if (jqXHR.responseText == "[]"){
Apperyio("No_Results").show();
}

The purpose of this is to show it when nothing is found for the specific query. However, the problem I'm having is that when your scroll through the whole list, after the last item shows and there are no more results, this message is appearing. Is there a way that I can have this message show when nothing is found, but NOT when the scrolling is done? Thanks!

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Infinite Scroll with No Results message

Hello Matt,

You can count all items: https://devcenter.appery.io/documenta...

and on each success event of the Infinite Scroll service chech total number of items with that value.

Hide "No_Results" message it that values are equal.

Return to “Issues”