0

The case scenario is like I have to check all available usernames/names from the databases whenever I type the letters instanly.

For example:- When type "je" in the userfield, it should show all combination of names starting with "je" inline. I am attaching a picture as sample.

Its indian railway website, where I type name of the train like "ka", it will show all names matching with it inline.
[IMG]http://farm3.static.flickr.com/2119/5803687637_48d9717b56_b.jpg[/IMG]

I need to implement this feature. any kind help would be appreciated , thanx a lot in advance

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by urtrivedi
0

Try the following:

On first key stroke get all names from the database that have the first character the same as the one typed and store into a javascript array.
On every key stroke after the first, filter the array rather than calling the database again.

If you are looking for code, just look up how to call a webservice using javascript. If you are using ASP.Net, look at using page methods.

0

I will do that, in the mean time, is there any script available to make feature like Google instant search. I think both are same feature right?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.