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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Nov 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Dynamic Dropdown Menus

    Hi there, im new to the forum and currently in the process of building a website.
    Unfortunetly it needs a little javascript putting in and I dont know any javascript atall.

    So heres my problem:
    --------------------

    I want 3 drop down menus where
    you change the top option, the middle menu updates (from a sql database),
    you change the middle option then the bottom option updates (again from the database).
    you select the 3rd option.
    it searches a database for the item matching all 3 entrys
    it displays the price

    all without reloading the page

    then you add the item to cart.

    ------------
    Heres my site with fake data in the dropdowns:
    http://xeon.donov.co.uk/~blinky/?a=cat_sub&cid=3&f=A3

  • #2
    Regular Coder
    Join Date
    May 2010
    Location
    Bathurst, Australia
    Posts
    180
    Thanks
    1
    Thanked 22 Times in 22 Posts
    You can make really simple ones with some basic css. I think the hover pseudoclass is css1. Here's a css one:
    http://www.evolt.org/node/52030
    and a javascript one:
    http://javascript-array.com/scripts/...rop_down_menu/
    They're both pretty basic. Given that you're using databases and what not I can't see why you couldn't handle these.

    Edit:
    Sort of didn't really read what you wanted there. Are you saying the content of the list changes depending on what you pick? If so you may need to look into ajax not javascript.
    Last edited by BulletTimeBill; 11-21-2010 at 06:30 AM.


  •  

    Posting Permissions

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