bahar.wadia
Posts: 0
Joined: Wed Aug 07, 2013 2:05 am

Autosuggest or/and Autocomplete

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Autosuggest or/and Autocomplete

Hello,

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

Igor
Posts: 0
Joined: Tue Apr 02, 2013 12:05 pm

Autosuggest or/and Autocomplete

RK
Posts: 0
Joined: Sat May 23, 2015 6:40 pm

Autosuggest or/and Autocomplete

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.

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

Autosuggest or/and Autocomplete

Hello Rohit,

Please send us HTML code which you use

RK
Posts: 0
Joined: Sat May 23, 2015 6:40 pm

Autosuggest or/and Autocomplete

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Autosuggest or/and Autocomplete

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

RK
Posts: 0
Joined: Sat May 23, 2015 6:40 pm

Autosuggest or/and Autocomplete

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Autosuggest or/and Autocomplete

Have you tried to debug?
Any error in console?

RK
Posts: 0
Joined: Sat May 23, 2015 6:40 pm

Autosuggest or/and Autocomplete

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

Return to “Issues”