-1
{"LastName":"Micheal","FirstName":"John"}

I have a Json data. When i type my last name or a single character in my text field, it should search this value... and get me the response.

My json data is stored in a file and i am able to read it and get into in a variable too... from there... i am not able too

theJava
  • 14,620
  • 45
  • 131
  • 172

1 Answers1

1

it's called autocomplete, you need a database for looking the data retrieve, and the js/jquery methods for comparison and searching into the data

Eric Frick
  • 847
  • 1
  • 7
  • 18
  • My json data is stored in a file and i am able to read it and get into in a variable too... from there... i am not able too – theJava Apr 20 '11 at 17:05
  • I am able to fetch the data, but not able to sort the results according to lastname... if you can show me an example it would be great... thanks – theJava Apr 20 '11 at 17:06
  • 2
    @theJava: please always show what you have so far, so we can make suggestions. Not to offend you, but we're not here to write your code. – Marcel Korpel Apr 20 '11 at 17:12
  • @theJava: BTW, if you want to sort results in an array containing objects like you showed in your question, have a look at http://stackoverflow.com/questions/5421253/sort-javascript-array-of-objects/5421390#5421390 – Marcel Korpel Apr 20 '11 at 21:46