Mobile app version of vmapp.org
Login or Join
Berryessa370

: Google Transliterator (input tools) is not suggesting words as typed when used on my site I want a transliterator (Google's) to be embedded in my site. I tried embedding it and I mostly succeeded.

@Berryessa370

Posted in: #Google #GoogleApps #International #Internationalization #Translation

I want a transliterator (Google's) to be embedded in my site. I tried embedding it and I mostly succeeded. It is showing translations, but all of them for a word typed one letter at a time like it shows in Google input tools online like this:



I need such a feature in my site, however it is only showing me at the end of the word when I hit space, not after every key press.

I tried looking at the web console (Firefox), and understood that in the code that I have is sending a request whenever we hit a space. But Google input tools online is sending request to POST a request after every key press then getting and printing data only after space.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Vandalay111

Could you code in an event listener that pings for every keypress instead of the default space / enter key press?

Google Search API and widgets usually have an auto-suggest option, which works the same as you want this to. However, I couldn't find an exact equivalent for the transliterate API, so your only option would be code this in yourself.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme