Wrox Programmer Forums

Need to download code?

View our list of code downloads.

| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old February 27th, 2006, 05:29 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
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>
<select name="city">
<option value="tehran>Tehran</option>
...
</select>
<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
                    </script>
can we write the code like this?whould some one help me please.thank you


Reply With Quote
  #2 (permalink)  
Old March 1st, 2006, 01:19 AM
Friend of Wrox
 
Join Date: May 2005
Location: tehran, tehran, Iran.
Posts: 201
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to hastikeyvan
Default

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

Reply With Quote
  #3 (permalink)  
Old November 10th, 2006, 12:32 PM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.

Cheers

Pete


Reply With Quote
  #4 (permalink)  
Old November 10th, 2006, 01:46 PM
Wrox Author
Points: 13,255, Level: 49
Points: 13,255, Level: 49 Points: 13,255, Level: 49 Points: 13,255, Level: 49
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2005
Location: Ohio, USA
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:49 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.