How to Modify the Quad Combo to behave like a Triple Combo?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dale_Frameli
Posted On:   Monday, March 2, 2009 04:21 PM

Please see the link below. I'm using jkd's quad combo source: http://codingforums.com/showthread.php?t=94737 I'd like to modify my code so that in a few select cases, visitors to my site can input just 3 selects, rather than all 4. I've modified the code as shown below, but it's not working correctly. Either the redirect either does nothing, an error occurs, or visitors are forced to make a 4th, unneeded, selection before the redirect occurs. Here's the part of the code I want to modify: function ReDirect2(y){ var x=document.CBN.CBN1.options.selectedIndex if(ComboBox2[x][y].value.length>4){ window.open(ComboBox2[x][y].value); } else { for (m=temp1.options.length-1;m   More>>

Please see the link below. I'm using jkd's quad combo source:

http://codingforums.com/showthread.php?t=94737

I'd like to modify my code so that in a few select cases, visitors to my site can input just 3 selects, rather than all 4.

I've modified the code as shown below, but it's not working correctly. Either the redirect either does nothing, an error occurs, or visitors are forced to make a 4th, unneeded, selection before the redirect occurs.

Here's the part of the code I want to modify:

function ReDirect2(y){
var x=document.CBN.CBN1.options.selectedIndex
if(ComboBox2[x][y].value.length>4){
window.open(ComboBox2[x][y].value);
} else { for (m=temp1.options.length-1;m>0;m--) temp1.options[m]=null
for (i=0;i
temp1.options[i]=new Option(ComboBox3[x][y][i].text,ComboBox3[x][y][i].value)
}
temp1.options[0].selected=true
ReDirect3(0)
}
}

I'm under pressure to meet a deadline, can anyone suggest a fix?

Thanks!

   <<Less
About | Sitemap | Contact