Page 1 of 2

Autosuggest or/and Autocomplete

Posted: Sat Sep 28, 2013 2:54 pm
by bahar.wadia

Is there a way to provide users with an Autocomplete or/and Autosuggest as they type in a searchbox or listview.

Similar to Google search.

Also, I want to be able to query the suggestions from a REST database.

Thanks


Autosuggest or/and Autocomplete

Posted: Sat Sep 28, 2013 3:07 pm
by Igor

Hello,

You can use jQuery Autocomplete. Please take a look at jQuery docs: http://jqueryui.com/autocomplete/


Autosuggest or/and Autocomplete

Posted: Sat Sep 28, 2013 3:13 pm
by Igor

Autosuggest or/and Autocomplete

Posted: Wed Jun 17, 2015 5:39 am
by RK

Hi,
I have added div code on my mobile page as below:
"Tags: "
Post which I am trying to add "Run Javascript" event on Click as below.
$(function() {
var availableTags = [
"ActionScript",
"AppleScript",
"Asp",
"BASIC",
"C",
"C++",
"Clojure",
"COBOL",
"ColdFusion",
"Erlang",
"Fortran",
"Groovy",
"Haskell",
"Java",
"JavaScript",
"Lisp",
"Perl",
"PHP",
"Python",
"Ruby",
"Scala",
"Scheme"
];
$( "#tags" ).autocomplete({
source: availableTags
});
});

However, the autocomplete option is not coming up. Am I doing something wrong? Please guide me as I am new to this.


Autosuggest or/and Autocomplete

Posted: Thu Jun 18, 2015 7:55 pm
by Serhii Kulibaba

Hello Rohit,

Please send us HTML code which you use


Autosuggest or/and Autocomplete

Posted: Sun Jun 21, 2015 5:03 pm
by RK

Hi Sergiy,
I will tell you my requirement. On a page, I want to put an input box with values fetched from a database. I want to offer autocomplete/autosuggest feature on that input box. Can you please suggest a code that could help me do it?
The above mentioned links are not working. i used the same html code from the first link that was suggested by Igor. Please help urgently.
Thanks


Autosuggest or/and Autocomplete

Posted: Sun Jun 21, 2015 5:23 pm
by Alena Prykhodko

Hi Rohit,

You can retrieve values from database with read service https://devcenter.appery.io/documenta..., also we have a lot of tutorials that show how to work with database https://devcenter.appery.io/tutorials...

Unfortunately custom code is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).


Autosuggest or/and Autocomplete

Posted: Sun Jun 21, 2015 5:33 pm
by RK

Hi Alena,
I am not expecting any custom code to be built and I do know how to interface with the database. I am only asking on how to use the autocomplete feature in appery. The first sample code link mentioned by Igor works for me if I put it into the startScreen. However, if I put it after the login screen, the login is stuck into infinite loop. Not sure where the problem is.

Thanks


Autosuggest or/and Autocomplete

Posted: Sun Jun 21, 2015 7:37 pm
by Alena Prykhodko

Have you tried to debug?
Any error in console?


Autosuggest or/and Autocomplete

Posted: Tue Jun 30, 2015 5:25 pm
by RK

Hi, it gives an exception that "autocomplete" does not exist. Can you suggest how to resolve this error?