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 4 of 4
  1. #1
    New Coder
    Join Date
    Feb 2004
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    After Making Drop Down Choices, User is sent to appropriate Link

    Hello all, I have searched the site but haven’t seen a topic exactly like this one(although I’m sure I just missed it)

    I am developing a product selection page where a user will pick what they want and be sent to the appropriate shopping cart page. The client wants it done with drop downs in the following way

    DropDown1- Select Product(3 choices)
    Dropdown2 - Select Color (7 choices)
    DropDown3-Size (5 choices)
    Dropdown4 - Add accessory or not (yes or no)

    Then depending on their choices they will be sent to the appropriate page. Additionally, 2 0f the 7 color choices do not have the accessory option so I need dropdown 4 to automatically change to no if a user selects one of these colors.

    Is this possible, or is there a better way to do this? Thanks much for any help.

  • #2
    Senior Coder Mhtml's Avatar
    Join Date
    Jun 2002
    Location
    Sydney, Australia
    Posts
    3,531
    Thanks
    0
    Thanked 1 Time in 1 Post
    This is a javascript question. So I'll move it to the appropriate forum.

    Basically you are going to need a function that will test what is selected accross all of then selection boxes and then go to the right url.

    Not a hard thing to accomplish. Probably best to use nested switches I guess. But I'll leave it to the js people to decide what is really the best option (no punn intended) for you.
    Omnis mico antequam dominus Spookster!

  • #3
    New Coder
    Join Date
    Feb 2004
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for moving this to the right board mhtml.

    Any help from anyone would be greatly appreciated.

  • #4
    New Coder
    Join Date
    Feb 2004
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bump. I could really use some help with this. Appreciate it.


  •  

    Posting Permissions

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