Page 1 of 1

Live Search

Posted: Fri Jun 12, 2015 3:44 am
by Konstantin

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


Live Search

Posted: Fri Jun 12, 2015 3:18 pm
by Evgene Karachevtsev

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...


Live Search

Posted: Fri Jun 12, 2015 4:38 pm
by Konstantin

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); 
 }); 

});


Live Search

Posted: Fri Jun 12, 2015 8:48 pm
by Evgene Karachevtsev

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.