• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Like search engine

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Sir,

I would like to know how to handle the typing text . I am developing application similar to search engine.
where user can type letter 'a' in text box means , which name start with letter 'a' its should be display in select box, if user type letter 'bc' means , which name start with letter 'bc' its should be display in select box like that i want to develop. What is the best practice to handle this case ?

Thanku,

paramu
 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Its a simple client server application where a client enter a letter or string and request a server for names starting with that particular letter, in response to server this name are appended to <select> tag, right ?

Then why don't you make a simple JSP/Servlet program, if that's what you really need is.
 
Ranch Hand
Posts: 433
Netbeans IDE
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
That feature is called "autocompletion" and there are tons of examples out there. (With just plain JavaScript have a look at http://www.mattkruse.com/javascript/autocomplete/ for example). It's quite probably that you can find an out-of-the-box solution for the technology you are using, if you're searching for this term.
 
paramu vinayagam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you sir,
for your link its very useful to me, i got the example program.i got some doubts in that program. like that JS file in below.
Arguments are :
field = text input field object
select = select list object containing valid values
property = either "text" or "value". This chooses which of the SELECT properties gets filled into the text box , the 'value' or 'text' of the selected option
forcematch = true or false. Set to 'true' to not allow any text in the text box that does not match an option. Only
supported in IE (possible future Netscape).

below mention 4 arguments like (fields,select,property,forcematch). i could not understand fields and select argument. what i thought.

fields - input box 'id' .
select - select box 'id' this both arguments i gave like in my application. its whether correct or not. can please tell me clearly about this (field,select) arguments.

Thank you,
Paramu..
 
Sheriff
Posts: 67752
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please be sure to use code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.

You can go back and change your post to add code tags by clicking the button on your post.

 
paramu vinayagam
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sir,
Thank you for your reply ,

for your link its very useful to me, i got the example program.i got some doubts in that program. like that JS file in below.
Arguments are :
field = text input field object
select = select list object containing valid values
property = either "text" or "value". This chooses which of the SELECT properties gets filled into the text box , the 'value' or 'text' of the selected option
forcematch = true or false. Set to 'true' to not allow any text in the text box that does not match an option. Only
supported in IE (possible future Netscape).
view plaincopy to clipboardprint?


below mention 4 arguments like (fields,select,property,forcematch). i could not understand fields and select argument. what i thought.

fields - input box 'id' .
select - select box 'id' this both arguments i gave like in my application. its whether correct or not. can please tell me clearly about this (field,select) arguments.

Thank you,
Paramu..
 
It's just a flesh wound! Or a tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic