jghibiki / SongHaven

An audio controller for playing music on a host machine and controlling via web clients
1 stars 0 forks source link

Research omnisearch methods with jqueary #7

Closed jghibiki closed 9 years ago

jghibiki commented 10 years ago
krenz444 commented 10 years ago

Will we be using JQuery for this? The search should be performed server side, as it is querying the DB directly.

krenz444 commented 10 years ago

If we are to implement a search that will work client side (no postback) we will need to load the entire database onto the user's computer whenever they load the page

Honestly though, that wouldn't be too bad as long as we are loading the data after loading the page. At least until our database starts becoming larger, is that what you had in mind?

jghibiki commented 10 years ago

For each character that is typed, wait something like 400 milliseconds in case another character is typed, and then query our service for a list of results, display the results. Repeat. Immediately query the service if the return key is pressed to submit the form. All the calls should be done over ajax, i will work on getting a definite service uri to be used for querying the database.