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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stockxcarx29
    New Member
    • Jan 2007
    • 8

    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">ko rn
    </select>

    <select name=song>
    <OPTION value="brackish " SELECTED>bracki sh
    <OPTION value="cumberso me">cumbersom e
    <OPTION value="right now">right now
    </select>

    i have that so far...is it even possible?
  • stockxcarx29
    New Member
    • Jan 2007
    • 8

    #2
    Originally posted by stockxcarx29
    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">ko rn
    </select>

    <select name=song>
    <OPTION value="brackish " SELECTED>bracki sh
    <OPTION value="cumberso me">cumbersom e
    <OPTION value="right now">right now
    </select>

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



    i need it in html..sorry bout that

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Sorry, this can't be done without javascript. Can you not even use an onchange handler?

      Comment

      • stockxcarx29
        New Member
        • Jan 2007
        • 8

        #4
        Originally posted by acoder
        Sorry, this can't be done without javascript. Can you not even use an onchange handler?
        explain to me what that is? :-/

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          Originally posted by stockxcarx29
          explain to me what that is? :-/
          Effectively, it is still javascript but included within the HTML tag, e.g.
          [HTML]<SELECT ONCHANGE="locat ion = this.options[this.selectedIn dex].value;">
          <OPTION VALUE="page1.ht ml">My Home Page
          <OPTION VALUE="page2.ht ml">Test
          <OPTION VALUE="page3.ht ml">Example
          </SELECT>[/HTML]

          Comment

          • stockxcarx29
            New Member
            • Jan 2007
            • 8

            #6
            ok..that seems to have worked..now..ca n i get one of those options to open a second box when a certain item is selected

            Comment

            • stockxcarx29
              New Member
              • Jan 2007
              • 8

              #7
              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...

              Comment

              • AricC
                Recognized Expert Top Contributor
                • Oct 2006
                • 1885

                #8
                Originally posted by stockxcarx29
                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?

                Comment

                • stockxcarx29
                  New Member
                  • Jan 2007
                  • 8

                  #9
                  Originally posted by AricC
                  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
                  Last edited by stockxcarx29; Jan 15 '07, 06:13 PM. Reason: typo

                  Comment

                  • iam_clint
                    Recognized Expert Top Contributor
                    • Jul 2006
                    • 1207

                    #10
                    Originally posted by stockxcarx29
                    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.

                    Comment

                    • stockxcarx29
                      New Member
                      • Jan 2007
                      • 8

                      #11
                      Originally posted by iam_clint
                      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

                      Comment

                      • AricC
                        Recognized Expert Top Contributor
                        • Oct 2006
                        • 1885

                        #12
                        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.

                        Comment

                        • stockxcarx29
                          New Member
                          • Jan 2007
                          • 8

                          #13
                          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.

                          Comment

                          Working...