Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Dec 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts

    drop down (just like yahoo mail's 'To' text field)

    Hi guys,

    i want to create a drop down for an textbox which is like Yahoo Mail's 'To' textbox.
    For Ex:- when we type in Yahoo Mail's 'To' textbox it will search for the keyed in text and will give it in dropdown.
    i want to develop the same like this.

    can anyone guide me how can i do this & which technology is used for this.

  • #2
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    Did you view the source at Yahoo?

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #3
    Regular Coder
    Join Date
    May 2005
    Location
    Michigan, USA
    Posts
    566
    Thanks
    0
    Thanked 0 Times in 0 Posts
    It uses the XMLHTTPRequest object to querry the server to ask what is in your contact list

  • #4
    New Coder
    Join Date
    Dec 2004
    Posts
    10
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i have seen but not understood any thing...hence posted
    --Mahesh P

  • #5
    Senior Coder
    Join Date
    Mar 2005
    Location
    Portsmouth UK
    Posts
    4,516
    Thanks
    3
    Thanked 505 Times in 492 Posts
    To do similar client side

    The text box has an associated array containing words

    as you type in the text box the array is searched for words begining with the typed string

    matching words are used as the options of a select list which is displayed

    clicking an entry in the selectlist enters the entry in the text box

    for example see

    http://www.vicsjavascripts.org.uk/Au...toComplete.htm


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •