This topic is locked
[SOLVED]

 Textarea autosuggestion

8/30/2011 12:48:13 PM
PHPRunner General questions
A
aalekizoglou author

I would like to know if anyone has enabled autosuggestion for a textarea. PHPRunner correctly does now allow autosuggestion for the textarea. I have a page where one of the fields is a textarea (phone numbers seperated by comma).
What i would like to achieve is when the user keys in some of the characters from the name or the phone number the system goes through AJAX and query a table to find the relevant entries. The user should be able to enter many values in the textarea. Something like gmail's autosuggestion in receipients.
I've found a jquery based textarea item tokenizer (loopj.com), but this unfortunatelly replaces the textarea with other html elements, therefore I should lose other javascript events based on the textarea itself.
I've also found http://wick.sourceforge.net but tis is based on an array rather that calling an AJAX source to get the results.
So any other input would be good,

Sergey Kornilov admin 8/30/2011

Personally I would use loopj control. Since this is a very special textarea (more looks like multiselect lookup control to me) I would not care about losing other events. Your situation might be different though.

C
cgphp 8/30/2011

Check Autocomplete from Jquery UI:

http://jqueryui.com/demos/autocomplete/

A
aalekizoglou author 9/2/2011



Personally I would use loopj control. Since this is a very special textarea (more looks like multiselect lookup control to me) I would not care about losing other events. Your situation might be different though.


Right. I've implemented loopj control succesfully. I was just wondering if there would be another control, or some jscript events helping me out, so that i wouldn't need to lose those events.
Thanks,

A
aalekizoglou author 9/2/2011



Check Autocomplete from Jquery UI:

http://jqueryui.com/...s/autocomplete/


This one works on a textbox for a single value. I am seeking of a control to wokr on a textarea with multiple values seperated by a delimiter. I've used jQuery's autocomplete for another situation.
Anyway thank you.

C
cgphp 9/2/2011