Hi, I am trying to implement an autocomplete form with rails, I used jquery in a first version, to suggest phrases to user and it worked Now I am trying to have a service of autocomplete word by word, it means when the user it typing in the text area, I suggest only words and not phrases and when he finishes the word and starts a new one I do the same suggestion for the new word Is there a way to do this easily in rails regards,
rubix Rubix wrote in post #1059751:
Hi, I am trying to implement an autocomplete form with rails, I used jquery in a first version, to suggest phrases to user and it worked Now I am trying to have a service of autocomplete word by word, it means when the user it typing in the text area, I suggest only words and not phrases and when he finishes the word and starts a new one I do the same suggestion for the new word Is there a way to do this easily in rails regards,
This can be done with javascript/jquery, not rails. Use the callbacks of autocomplete :).
I think what Guillem is saying is that you can still do it with jQuery/ Javascript like you did before and that you'll need to control the logic yourself.