This Question is bit broad, I did enough research and asking here so that I can get at least some suggestions.
I am trying to set up auto complete textbox/textarea dictionary suggestions. I have tried to setup auto-complete from JSON data from server
and I am able to do that.. But here my question is, Can I set up a textarea with auto suggest from dictionary words like when we are entering some text in Word processor. Is it possible through any API available?
You could try Google Places Autocomplete API. Here's some related SO thread. I can't find any official documentation to the Google Search
Autocomplete API, thankfully someone already did the research for us. Follow instructions there, it shouldn't be too difficult to set-up (looks rather straight forward with both JSON
and XML
notated responses).
I am sure you would have find many ways to achieve autocomplete on TextArea. To name a few
Both the framework and function are rich enough.
Coming on the dictionary API's
API page for altervista
Few others are
Well, if you do have access to a JSON response from some server, you could use jQuery. http://jqueryui.com/autocomplete/
$(function() {
function log( message ) {
$( "<div>" ).text( message ).prependTo( "#log" );
$( "#log" ).scrollTop( 0 );
}
$( "#birds" ).autocomplete({
source: "search.php",
minLength: 2,
select: function( event, ui ) {
log( ui.item ?
"Selected: " + ui.item.value + " aka " + ui.item.id :
"Nothing selected, input was " + this.value );
}
});
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With