Access the answers to your technology questions today.
Subscribe Now
30-day free trial. Register in 60 seconds.
What Makes Experts Exchange Unique?
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.
Try it out and discover for yourself.
Subscribe Now
30-day free trial. Register in 60 seconds.
Join the Community
Give a Little. Get a Lot.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Join the Community
by: joejenkinsjaxPosted on 2006-02-27 at 05:03:38ID: 16054662
RavingNum,
tions.sele ctedIndex) ">
odel
){ ptions[j+1 ] = new Option(makes[j], makes[j]); ptions[0]. selected=t rue;
>0;m--)
1;i++){ dels[x-1][ i-1])
rue
th);
el.value!= "all_model s" || x==0) += "/search_results.cgi";
I used FrontPage many years ago to design a site for someone who wanted to administer the site themselves. What's you're asking for is out of the scope of FrontPage. You're going to need to go to Javascript for this functionality.
Car sites are great examples of this working. Here's a basic car example that will even grey out the second box until a selection is made:
<form name="twoboxmenu">
<select name="make" onchange="redirect(this.op
<option value="0">Select</option>
</select>
<select name="model" disabled="disabled">
<option value="0">Model:</option>
</select>
</form>
<Script language=javascript>
var makes = new Array();
var models = new Array();
makes[0] = "Acura";
makes[1] = "Alfa Romeo";
makes[2] = "AMC";
makes[3] = "Ford";
for (i=0;i<makes.length;i++)
models[i] = new Array();
models[0][0] = "CL";
models[0][1] = "EL";
models[0][2] = "Integra";
models[1][0] = "145";
models[1][1] = "146";
models[1][2] = "147";
models[2][0] = "Alliance";
models[2][1] = "Ambassador";
models[2][2] = "AMX";
models[2][3] = "Classic";
models[3][0] = "F-150";
models[3][1] = "Taurus";
var temp=document.twoboxmenu.m
/*initialize the drop down Makes box */
for(j=0;j<makes.length;j++
document.twoboxmenu.make.o
document.twoboxmenu.make.o
/*initialize the drop down Models box */
temp.options[0] = new Option("All models", "all_models")
}
function redirect(x){
/* clear out the models drop down */
for (m=temp.options.length-1;m
temp.options[m]=null
temp.options[0] = new Option("All models", "all_models")
/* if the user has selected the "Make" option, disable the drop down boxes */
if(x==0){
temp.disabled = true;
return;
}
for (i=1;i<models[x-1].length+
temp.options[i]=new Option(models[x-1][i-1],mo
}
temp.options[0].selected=t
temp.disabled = false
appendurl(models[x-1].leng
}
function appendurl(x)
{
if(document.twoboxmenu.mod
{
document.twoboxmenu.action
}
}
</script>
I hope that helps you.
Joe Jenkins