Wrox Programmer Forums
Classic ASP Professional For advanced coder questions in ASP 3. NOT for ASP.NET 1.0, 1.1, or 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old February 27th, 2006, 05:29 AM
Friend of Wrox
Join Date: May 2005
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default dependent select menu

Hello all
I have 3 dependent menus(that 2 of them are working)but for the third one I conditions are different:
1-when we select an item in first select, in the second select will show the values that are related to first select
2-when we select an item in second select,if we select some special values in the third select will show the values that are related to second select:
for example:we select meadle east in first select
then it will show the countries of meadle east and when we select iran in second swelect(jus when we select iran) it will show some cities of iran in the third select
the code for third select is as below:

<select name="country">
<option value="iran">Iran</option>
<select name="city">
<option value="tehran>Tehran</option>
<script for="country" language="VBScript" event="onchange">
if document.forms[form1].country.options[country.selectedIndex]='Iran' then
document.form1.city.options[1]=new option('tehran','tehran')
... end if
can we write the code like this?whould some one help me please.thank you

Old March 1st, 2006, 01:19 AM
Friend of Wrox
Join Date: May 2005
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan

Is there any one can help me please??????

Old November 10th, 2006, 12:32 PM
Registered User
Join Date: Aug 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts

Sorry I cant help you,

but maybe you could help me, I am trying to have a menu dependent on the option selected in a previous menu. This seems to be what you have? If you could show me the asp code to do this I would greatly appreciate it.



Old November 10th, 2006, 01:46 PM
Wrox Author
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons

in .NET this would be simple but yes you are going to have to do something similiar with a client side script if you want the menus to change dynamically without the page posting back to itself.

I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.

^^Thats my signature

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chain Select Menu with ASP chame Classic ASP Basics 1 May 1st, 2008 06:18 PM
Populate Select Menu from MySQL Database joviyach PHP Databases 4 June 24th, 2006 09:38 PM
dependent select menu hastikeyvan Dreamweaver (all versions) 1 February 27th, 2006 04:34 AM
disabling drop-down menu (select) crmpicco Javascript How-To 2 March 1st, 2005 07:08 AM
Select Menu Multiple Selections phungleon HTML Code Clinic 2 July 20th, 2004 12:25 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.