Konstantin
Posts: 0
Joined: Wed Jun 10, 2015 2:38 pm

Live Search

Hello, could you please provide an example of live search where the phrase I type gets dynamically checked against a collection table. Thanks.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Live Search

Hello Konstantin,

We are sorry, but unfortunately custom app logic is outside the scope of our support. But I hope this link will be useful for you:
https://devcenter.appery.io/documenta...

Konstantin
Posts: 0
Joined: Wed Jun 10, 2015 2:38 pm

Live Search

Hi, thanks for your reply. But I still need it since without it, I cannot publish my app and your company won't receive revenue from a client (me). Having said that I found a sample code and I was wondering what do I need to do to connect it to a column in my table which has data I would like to display as user types in stuff in a search box. Please help!

$(document).ready(function(){
$("#filter").keyup(function(){

Code: Select all

     // Retrieve the input field text and reset the count to zero 
     var filter = $(this).val(), count = 0; 

     // Loop through the comment list 
     $(".commentlist li").each(function(){ 

         // If the list item does not contain the text phrase fade it out 
         if ($(this).text().search(new RegExp(filter, "i")) < 0) { 
             $(this).fadeOut(); 

         // Show the list item if the phrase matches and increase the count by 1 
         } else { 
             $(this).show(); 
             count++; 
         } 
     }); 

     // Update the count 
     var numberItems = count; 
     $("#filter-count").text("Number of Comments = "+count); 
 }); 

});

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Live Search

Konstantin,

You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about it: http://appery.io/services/#Advisory_Pack.

Return to “Issues”