Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adding a fourth layer to the triple combo...

    Hello,
    I need to add a layer to the triple combo and would appreciate a helpfull tip.
    Thanks
    Roy

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts

    Welcome to CF!

    Please provide enough information to enable us to help you.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #3
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Thanks Glenn.. here is the code which i can't get to work

    here is the code which i can't get to work:

    Code:
    <tr>
    	<td align="left">
    		<select name="region" size="1" onChange="redirect4(this.options.selectedIndex);">
    			<option selected>region</option>
    			<option>-----------</option>
    			<option>option 1</option>
        	</select>
    	</td>
    </tr>
    
    <tr>
    	<td align="left">
    		<select name="city" size="1" onChange="redirect5(this.options.selectedIndex)">
    			<option selected>city</option>
    			<option>-----------</option>
        	</select>
    	</td>
    </tr>
    
    <tr>
    	<td align="left">
    		<select name="quarter" size="1" onChange="redirect6(this.options.selectedIndex)">
    			<option selected>quarter</option>
    			<option>-----------</option>
    		</select>
    	</td>
    </tr>
    
    <tr>
    	<td align="left">
    		<select name="hood" size="1">
    			<option selected>neighborhood</option>
    			<option>-----------</option>
    		</select>
    	</td>
    </tr>
    
    <script>
    <!--
    var group4s=document.update.region.options.length
    var group4=new Array(group4s)
    for (i=0; i<group4s; i++)
    group4[i]=new Array()
    
    group4[0][0]=new Option(""," ");
    group4[1][0]=new Option(""," ");
    
    group4[2][0]=new Option("select...","");
    group4[2][1]=new Option("opt1","1");
    
    var temp4=document.update.city
    
    function redirect4(x){
    for (m=temp4.options.length-1;m>0;m--)
    temp4.options[m]=null
    for (i=0;i<group4[x].length;i++){
    temp4.options[i]=new Option(group4[x][i].text,group4[x][i].value)
    }
    temp4.options[0].selected=true
    redirect5(0)
    }
    
    var group5s=document.update.city.options.length
    var group5=new Array(group4s)
    for (i=0; i<group4s; i++)  {
    group5[i]=new Array(group4[i].length)
    for (j=0; j<group4[i].length; j++)  {
    group5[i][j]=new Array()  }}
    
    group5[0][0][0]=new Option(""," ");
    group5[1][0][0]=new Option(""," ");
    
    group5[2][0][0]=new Option("select...","");
    group5[2][1][0]=new Option("opt1","1");
    
    var temp5=document.update.hood_cluster
    
    function redirect5(y){
    for (m=temp5.options.length-1;m>0;m--)
    temp5.options[m]=null
    for (i=0;i<group5[document.update.region.options.selectedIndex][y].length;i++){
    temp5.options[i]=new Option(group5[document.update.region.options.selectedIndex][y][i].text,group5[document.update.region.options.selectedIndex][y][i].value)
    
    }
    temp5.options[0].selected=true
    redirect6(0)
    }
    
    
    var group6s=document.update.quarter.options.length
    var group6=new Array(group5s)
    for (i=0; i<group5s; i++)  {
    group6[i]=new Array(group5[i].length)
    for (j=0; j<group5[i].length; j++)  {
    group6[i][j]=new Array()  
    for (k=0; k<group5[j].length; k++)  {
    group6[i][j][k]=new Array()  }}}
    
    group6[0][0][0][0]=new Option(""," ");
    group6[1][0][0][0]=new Option(""," ");
    
    group6[2][1][0][0]=new Option("select..."," ");
    group6[2][1][1][0]=new Option("opt1","1");
    
    var temp6=document.update.hood
    function redirect6(z){
    for (m=temp6.options.length-1;m>0;m--)
    temp6.options[m]=null
    for (i=0;i<group6[document.update.region.options.selectedIndex][z].length;i++){
    temp6.options[i]=new Option(group6[document.update.region.options.selectedIndex][z][i].text,group6[document.update.region.options.selectedIndex][z][i].value)
    }
    
    temp6.options[0].selected=true
    }
    //-->
    </script>
    Last edited by liorean; 06-07-2004 at 10:43 AM. Reason: [code]ified

  • #4
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts
    Try this:

    http://www.codingforums.com/showthread.php?t=3374

    or this:

    http://www.codingforums.com/showthread.php?t=28544

    In the future, I suggest you to search this forum first before asking. Almost always, common questions such as yours have been asked and answered before.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________

  • #5
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    I did search but.. obviously not enough. Thanks.

    I did search but.. obviously not enough. Thanks.

  • #6
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,075
    Thanks
    0
    Thanked 256 Times in 252 Posts

    You're welcome

    Using the right keyword to search is the key to getting more results. If you used "quadruple", you will get more results.
    Glenn
    ____________________________________

    My Blog
    Tower of Hanoi Android app (FREE!)
    Tower of Hanoi Leaderboard
    Samegame Facebook App
    vBulletin Plugins
    ____________________________________


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •