Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Drop down menus
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Drop down menus

 Post Reply Post Reply
Author
ell_23 View Drop Down
Newbie
Newbie


Joined: 28 February 2003
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote ell_23 Quote  Post ReplyReply Direct Link To This Post Topic: Drop down menus
    Posted: 28 February 2003 at 6:26am

Hi folks

I am currently developing a website which will sell various fittings and valves.

I want the site to have a search function which will use dynamic drop down menus.

For example: The user will select from menu 1, this then populates menu 2 with values related to the selection.

The user then selets from menu 2, which then populates menu 3.

I want to have 4 menus in this search function.

I had looked at possibly using Javascript on the client side and storing a reference to each product in arrays.The user would then select in each menu and this would fill the next one with values from a related array....When all this was complete then the DB would be searched using the selections from the menus (using ASP)

However due to an increase in the number of products this is not viable, so I have to now look at using ASP each time the user selects from a menu it will reference the DB on the server.

i.e. user selects from menu 1, query sent to DB and menu 2 populated with values.....etc

I am a newbie to ASP, and have been trying to pick it up in the last month.

Has anyone got any ideas on how this problem could be solved??

If I haven't made the problem clear enough then I will be more than happy to elaborate.

Regards

Back to Top
ulfe View Drop Down
Senior Member
Senior Member


Joined: 25 September 2001
Location: Sweden
Status: Offline
Points: 332
Post Options Post Options   Thanks (0) Thanks(0)   Quote ulfe Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2003 at 2:19pm

You could try to put the value in Querystring and post against the same page all the time:

url.asp?combo1=5
This triggers that you have made a selection in cbo #1, and when you make the roundtrip, you fill cbo #2 with the values you get when taking the cbo#1 value

If Request.Querystring("combo1") then
  Select * from table where field = Request.Querystring("combo1")
  ' Fill combo 2
End if

and for the next combo's

If Request.Querystring("combo2") then
  Select * from table where field = Request.Querystring("combo2")
  ' Fill combo 3
End if

Hope this might get you started in at least one direction

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 01 March 2003 at 5:12am
There have been many, many posts made throughout the world...
This was one of them.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.