Page 1 of 1

Get the found word from a Database service call in Javascript.

Posted: Fri Aug 07, 2015 4:46 am
by ahmet7661733

Hi,
I have a sentence with couble of words, Also I have a database table with 500 words, I read the sentence and want to know which words are included in the database table (of 500 words). I use java script, in a loop I want to display each found wordt with a allert. In Java script I used service call to the database and with a check (if data.length 0) on SUCCESS I know If I found a word. How do I know Which word is found? data.SOMEThing ??? Please help.


Get the found word from a Database service call in Javascript.

Posted: Fri Aug 07, 2015 7:19 pm
by Serhii Kulibaba

Hello Ahmet,

1) Do you always get all items from DB or you search data in DB?
2) Could you send us screenshots with response parameters of that service?
3) Also service's response would be helpful.
4) Do you need search text in this data locally on the device?
5) How do I know Which word is found? data.SOMEThing ???
It depends on data structure of service's response