anelezeravla
Posts: 0
Joined: Tue Oct 01, 2013 12:00 pm

Displaying suggestions in input box

We managed to prevent the layer from disappearing by adding at Page Show event autoFocus: true

However, we still can't manage to click on the selected suggestion.

Appery("mobiletextinput_2").autocomplete({
source: [],
minLength: 0,
delay: 0,
autoFocus: true
});

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Displaying suggestions in input box

Don't do autoFocus: true. Just delete jquery link in App settings - External resources. You don't need it there because you have it in JS assets.

anelezeravla
Posts: 0
Joined: Tue Oct 01, 2013 12:00 pm

Displaying suggestions in input box

Thanks a lot, it works beautifully.

vcalero
Posts: 0
Joined: Wed Nov 13, 2013 12:20 pm

Displaying suggestions in input box

Hello, I follow all steps for my autocomplete input and my app works fine. But I have got a problem with minLength and delay parameters:

Now, my Page Show script is this:
code
Appery("mobiletextinput_busqueda").autocomplete({
source: [],
minLength: 0,
delay: 0
});
/code

Then my app, for each letter in the input box search make this:
Image
(Too many requests for only one search)

If I change the minLength or delay parameters for minLengh 3 or delay 1500 or both, the autocomplete makes the same requests and also don't show the response.

Any idea? Thanks in advance.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Displaying suggestions in input box

Hello! Try to track speed of data input into Input field. In code check the last time value in Input has been changed and if time before changes isn't long don't invoke service.

vcalero
Posts: 0
Joined: Wed Nov 13, 2013 12:20 pm

Displaying suggestions in input box

Thanks Maryna.

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Displaying suggestions in input box

Hi There, happy new yr !

I hv gone through the above.
hv linked the app to the additional library http://code.jquery.com/ui/1.10.3/jque...
however, on that same html page, I hv a slider (Appery's) and it is removed (if I delete the link to the library, the slider reappears) :(

i do need both : the slider + the autocomplete

any idea ?

thks in advance,
Eric

EJLD
Posts: 0
Joined: Sun Jun 08, 2014 11:03 pm

Displaying suggestions in input box

Hi there, in fact, I don't need to have slider and autocomplete on same page. I'll do differently. forget about this question. best, Eric

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

Displaying suggestions in input box

Hello Eric,

Happy new year you too and thank you for the update.

Ellen Schlechter
Posts: 0
Joined: Sun Aug 31, 2014 3:28 am

Displaying suggestions in input box

@anelezeravla What components do you use to type in and to display the list of suggestions? And how do you make the list appear?

Return to “Issues”