Depending on which transaction and search is selected in my select box, the page gets reformatted with only the elements needed (some text boxes disappear...). For some reason, when toggling between two of my searches, I lose the filer city row. Once it goes to hidden, I cannot make it become visible again. It is obvious on the screen because it becomes an empty row, just white space between the filer name and filer type rows. I've looked at the places where I place the row visible, and I think I've covered them all.
Here's where the javascript toggles the rows:
switch (switchElement) /*print the filer name/id block*/
{
case "11":
case "21":
case "31":
case "41":
case "51":
case "61":
elementFilerNar row.style.displ ay = "";
elementFilerNar row.style.visib ility = "visible";
elementFilerLas t.style.display = "";
elementFilerLas t.style.visibil ity = "visible";
elementFilerFir st.style.displa y = "";
elementFilerFir st.style.visibi lity = "visible";
alert("toggle filer city 11/21/31...");
elementFilerCit y.style.display = "";
elementFilerCit y.visibility = "visible";
elementType.sty le.display = "";
elementType.sty le.visibility = "visible";
elementID.style .display = "none";
elementID.style .visibility = "hidden";
break;
case "12":
case "22":
case "32":
case "42":
case "52":
case "62":
elementFilerNar row.style.displ ay = "none";
elementFilerNar row.style.visib ility = "hidden";
elementFilerLas t.style.display = "none";
elementFilerLas t.style.visibil ity = "hidden";
elementFilerFir st.style.displa y = "none";
elementFilerFir st.style.visibi lity = "hidden";
alert("toggle filer city 12/22/32...");
elementFilerCit y.style.display = "none";
elementFilerCit y.style.visibil ity = "hidden";
elementType.sty le.display = "none";
elementType.sty le.visibility = "hidden";
elementID.style .display = "";
elementID.style .visibility = "visible";
break;
case "13":
case "23":
case "33":
case "43":
case "53":
case "63":
elementFilerNar row.style.displ ay = "";
elementFilerNar row.style.visib ility = "visible";
elementFilerLas t.style.display = "";
elementFilerLas t.style.visibil ity = "visible";
elementFilerFir st.style.displa y = "";
elementFilerFir st.style.visibi lity = "visible";
alert("toggle filer city 13/23/33...");
elementFilerCit y.style.display = "";
elementFilerCit y.visibility = "visible";
elementType.sty le.display = "";
elementType.sty le.visibility = "visible";
elementID.style .display = "";
elementID.style .visibility = "visible";
break;
}
Here's where the javascript toggles the rows:
switch (switchElement) /*print the filer name/id block*/
{
case "11":
case "21":
case "31":
case "41":
case "51":
case "61":
elementFilerNar row.style.displ ay = "";
elementFilerNar row.style.visib ility = "visible";
elementFilerLas t.style.display = "";
elementFilerLas t.style.visibil ity = "visible";
elementFilerFir st.style.displa y = "";
elementFilerFir st.style.visibi lity = "visible";
alert("toggle filer city 11/21/31...");
elementFilerCit y.style.display = "";
elementFilerCit y.visibility = "visible";
elementType.sty le.display = "";
elementType.sty le.visibility = "visible";
elementID.style .display = "none";
elementID.style .visibility = "hidden";
break;
case "12":
case "22":
case "32":
case "42":
case "52":
case "62":
elementFilerNar row.style.displ ay = "none";
elementFilerNar row.style.visib ility = "hidden";
elementFilerLas t.style.display = "none";
elementFilerLas t.style.visibil ity = "hidden";
elementFilerFir st.style.displa y = "none";
elementFilerFir st.style.visibi lity = "hidden";
alert("toggle filer city 12/22/32...");
elementFilerCit y.style.display = "none";
elementFilerCit y.style.visibil ity = "hidden";
elementType.sty le.display = "none";
elementType.sty le.visibility = "hidden";
elementID.style .display = "";
elementID.style .visibility = "visible";
break;
case "13":
case "23":
case "33":
case "43":
case "53":
case "63":
elementFilerNar row.style.displ ay = "";
elementFilerNar row.style.visib ility = "visible";
elementFilerLas t.style.display = "";
elementFilerLas t.style.visibil ity = "visible";
elementFilerFir st.style.displa y = "";
elementFilerFir st.style.visibi lity = "visible";
alert("toggle filer city 13/23/33...");
elementFilerCit y.style.display = "";
elementFilerCit y.visibility = "visible";
elementType.sty le.display = "";
elementType.sty le.visibility = "visible";
elementID.style .display = "";
elementID.style .visibility = "visible";
break;
}