473,386 Members | 1,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

open select pulldown box only if certain option is clicked..not using javascript

is there way to use a pull down box/selection box to open a new box but only if a certain item is selected...but the catch is..i need it in...cant use java

<select name=band>
<OPTION value="kittie" SELECTED>kittie
<OPTION value="seven mary three">seven mary three
<OPTION value="korn">korn
</select>

<select name=song>
<OPTION value="brackish" SELECTED>brackish
<OPTION value="cumbersome">cumbersome
<OPTION value="right now">right now
</select>

i have that so far...is it even possible?
Jan 14 '07 #1
12 4104
is there way to use a pull down box/selection box to open a new box but only if a certain item is selected...but the catch is..i need it in...cant use java

<select name=band>
<OPTION value="kittie" SELECTED>kittie
<OPTION value="seven mary three">seven mary three
<OPTION value="korn">korn
</select>

<select name=song>
<OPTION value="brackish" SELECTED>brackish
<OPTION value="cumbersome">cumbersome
<OPTION value="right now">right now
</select>

i have that so far...is it even possible?



i need it in html..sorry bout that
Jan 14 '07 #2
acoder
16,027 Expert Mod 8TB
Sorry, this can't be done without javascript. Can you not even use an onchange handler?
Jan 14 '07 #3
Sorry, this can't be done without javascript. Can you not even use an onchange handler?
explain to me what that is? :-/
Jan 14 '07 #4
acoder
16,027 Expert Mod 8TB
explain to me what that is? :-/
Effectively, it is still javascript but included within the HTML tag, e.g.
[HTML]<SELECT ONCHANGE="location = this.options[this.selectedIndex].value;">
<OPTION VALUE="page1.html">My Home Page
<OPTION VALUE="page2.html">Test
<OPTION VALUE="page3.html">Example
</SELECT>[/HTML]
Jan 14 '07 #5
ok..that seems to have worked..now..can i get one of those options to open a second box when a certain item is selected
Jan 14 '07 #6
what i am trying to do..is have 1 pull down box show a list of bands...when you select one band it opens a second pull down box howing a list of songs..select a song and the song plays...thats what i am attempting...
Jan 14 '07 #7
AricC
1,892 Expert 1GB
what i am trying to do..is have 1 pull down box show a list of bands...when you select one band it opens a second pull down box howing a list of songs..select a song and the song plays...thats what i am attempting...
I think you are going to need/want Javascript arrays for what you want, is there any reason you are trying to stay away from using JS?
Jan 15 '07 #8
I think you are going to need/want Javascript arrays for what you want, is there any reason you are trying to stay away from using JS?
yeah, this is for a myspace page. im not sure if your familiar with myspace but the use of javascript isnt permitted
Jan 15 '07 #9
iam_clint
1,208 Expert 1GB
yeah, this is for a myspace page. im not sure if your familiar with myspace but the use of javascript isnt permitted
I will say that you won't get this done without any javascript or other client side scripting.
Jan 15 '07 #10
I will say that you won't get this done without any javascript or other client side scripting.
o ok. thanks. is there anything i can do that will be similar to what i wanted to do
Jan 15 '07 #11
AricC
1,892 Expert 1GB
I don't think so the problem is the re-directing to another page, you will need javascript or another language to do this. Not familiar with MySpace but I've heard they will delete your account for the slightest infringement, if they say no javascript you may be pretty much stuck. If you can't use JS I doubt they will let you use any other scripting language.
Jan 15 '07 #12
yeah. i dont much bout html just some basics...but i want the stuff to stay on the same page...not so much open another page, but like you select an option one pull down box which opens a second pulldown box and an option in the second one would open a small html music player. but if i cant do it i cant do it.
Jan 15 '07 #13

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: J. Muenchbourg | last post by:
I have an ASP admin script where I'm adding records, and I have a category that already has set name values hard-coded into a selct option pulldown, but if the user wants to create a new category...
1
by: J. Muenchbourg | last post by:
I have 3 select pulldown boxes where a user will select a year (either 2002 or 2001), a week (one thru 52), and a database (short data or long data). But if a user selects a week that is less than...
1
by: cgplays.com | last post by:
I have a select-pulldown at http://computergroupplays.com/fb-pres2.asp that changes the 3rd pulldown (Dbase) depending on what the user enters in the 2nd (Wk). My associate wants the values inside...
2
by: Oskar Wild | last post by:
Hello, how do I code it to display a select (pulldown) box only if the user has selected a certain option in another pulldown box? <select name=country> <OPTION value="France" SELECTED>France...
6
by: Amer Neely | last post by:
I have a page showing dynamic generation of a SELECT box using JavaScript. See http://www.softouch.on.ca/dynamic.html. Using Mozilla et al, choosing an option from both lists will result in the...
1
by: Mad Scientist Jr | last post by:
I'm stuck trying to work with a HTML <SELECT> control and javascript (similar to DualList but that control doesn't offer enough options to totally control the text on the buttons and control, also...
13
by: Oliver Hauger | last post by:
Hello, In my html form I show a select-element and if this element is clicked I fill it per JavaScript/DOM with option-elements. I use the following code: <!DOCTYPE HTML PUBLIC "-//W3C//DTD...
1
by: puneet.bansal | last post by:
Hi, I want to know the index of the option that a user clicks on in a multiple-select object (regardless of whether he selected or deselected it). This seems fairly simple but I can't seem to...
4
by: WiseG1rly | last post by:
Hey everyone! Still working on a site I posted for a while ago. Essentially I have a search function that is populated through by a database in mySQL and PHP. I need a few things to help the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.