SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Anyone ever done this before?

    I'd be interested to see if you know of any tutorials to achieve what I want.

    I basically want to use some PHP, MySQL and AJAX.

    So the user enters text in an input field and it gets added to the dropdown on the left. The dropdown is created from a while loop in PHP.

    Please see attached image for further info and any help would be fant-abulous

    Can anyone help me do this?
    Attached Images Attached Images
    Last edited by invision2; Jun 26, 2008 at 07:53.

  2. #2
    Trash Boat mkoenig's Avatar
    Join Date
    Aug 2007
    Posts
    1,232
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah that is pretty good, and while not common i've seen it used before and have worked on a few ajax examples from books that work like that.

    Fairly advanced stuff there.

  3. #3
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can you possibly point me in the direction where I could find such a tutorial. I'm really head-scratchin' on this one
    Thanks!

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This should not be so difficult. Just grab the value of the text field and insert it into the dropdown.

    There are tons of tutorials on how to handle forms with JavaScript.

  5. #5
    SitePoint Wizard
    Join Date
    Mar 2008
    Location
    United Kingdom
    Posts
    1,285
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to be a nuisance, but could anyone point me in the right direction for a tutorial.
    It seems to be out there, but I'm having no luck with Google.

    If you've seen it, please post, I'd be eternally grateful.

  6. #6
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quirksmode has a good introduction to JavaScript and forms. You should find that page among these search results.

    Here is a thread on how to add a new option to a dropdown.


Bookmarks

Posting Permissions

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