By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,724 Members | 1,655 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,724 IT Pros & Developers. It's quick & easy.

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

P: 8
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
Share this Question
Share on Google+
12 Replies


P: 8
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
Expert Mod 15k+
P: 16,027
Sorry, this can't be done without javascript. Can you not even use an onchange handler?
Jan 14 '07 #3

P: 8
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
Expert Mod 15k+
P: 16,027
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

P: 8
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

P: 8
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

Expert 100+
P: 1,892
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

P: 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
Expert 100+
P: 1,208
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

P: 8
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

Expert 100+
P: 1,892
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

P: 8
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

Post your reply

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