473,511 Members | 15,046 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

losing a row when rewritting table with hidden vs. visible

12 New Member
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":
elementFilerNarrow.style.display = "";
elementFilerNarrow.style.visibility = "visible";
elementFilerLast.style.display = "";
elementFilerLast.style.visibility = "visible";
elementFilerFirst.style.display = "";
elementFilerFirst.style.visibility = "visible";
alert("toggle filer city 11/21/31...");
elementFilerCity.style.display = "";
elementFilerCity.visibility = "visible";
elementType.style.display = "";
elementType.style.visibility = "visible";
elementID.style.display = "none";
elementID.style.visibility = "hidden";
break;

case "12":
case "22":
case "32":
case "42":
case "52":
case "62":
elementFilerNarrow.style.display = "none";
elementFilerNarrow.style.visibility = "hidden";
elementFilerLast.style.display = "none";
elementFilerLast.style.visibility = "hidden";
elementFilerFirst.style.display = "none";
elementFilerFirst.style.visibility = "hidden";
alert("toggle filer city 12/22/32...");
elementFilerCity.style.display = "none";
elementFilerCity.style.visibility = "hidden";
elementType.style.display = "none";
elementType.style.visibility = "hidden";
elementID.style.display = "";
elementID.style.visibility = "visible";
break;

case "13":
case "23":
case "33":
case "43":
case "53":
case "63":
elementFilerNarrow.style.display = "";
elementFilerNarrow.style.visibility = "visible";
elementFilerLast.style.display = "";
elementFilerLast.style.visibility = "visible";
elementFilerFirst.style.display = "";
elementFilerFirst.style.visibility = "visible";
alert("toggle filer city 13/23/33...");
elementFilerCity.style.display = "";
elementFilerCity.visibility = "visible";
elementType.style.display = "";
elementType.style.visibility = "visible";
elementID.style.display = "";
elementID.style.visibility = "visible";
break;
}
Apr 13 '10 #1
0 1283

Sign in to post your reply or Sign up for a free account.

Similar topics

11
2290
by: Jack | last post by:
I want to display a table on a page based on whether a button is pressed or not. I'm new at php so I'm sure I'm making a basic mistake. Here's what I am trying. My thought was that $show_summary...
3
3130
by: daveland | last post by:
I am working on some JavaScript that dynamically adds rows to a table in response to a button click. A new row does appear on the screen when the button is clicked. However, that table to which a...
3
9241
by: davidkarlsson74 | last post by:
Error: document.getElementById("folderMenu").cells has no properties File: http://www.volkswagen.se/tillbehor/js/foldermenu.js Rad: 49 The function activates different DIV:s, but doesn't seem to...
0
1484
by: Stefan De Schepper | last post by:
Dear NG, I created a gridlike usercontrol. When clicking on a cell a textbox (or other control, depending on the cell's editortype) is shown. When some other control gets the focus, the textbox...
2
4937
by: dschectman | last post by:
This appears to be a feature of IE JavaScript. I am running IE 6.0 with the latest patches from Microsoft. Are there any workarounds other than re-coding the source HTML to place all the...
0
1056
by: Mr. SweatyFinger | last post by:
Failed to load viewstate. The control tree into which viewstate is being loaded must match the control tree that was used to save viewstate during the previous request. For example, when adding...
6
17091
by: Dan | last post by:
Hi, i defined a html table with Visible="false", but i still see it in the browser. Why and how to hide that table? Thanks Dan %@ Page Language="VB" AutoEventWireup="false"...
1
5185
by: MissMarie | last post by:
I've been playing around with DIV tables in myspace to better learn how to rewrite my own code for my business site without having to pay someone to design it. I've tried embedding a slideshow into...
2
2313
by: Wayne | last post by:
Is there a workaround to the bug that loses the first record in a continuous form after using the scroll wheel if the available records don't fill the form? I know that the "up arrow" section of...
28
6068
by: tennessee | last post by:
Hi all, I have been searching for a couple days on this. I need to hide a column in the reports when all values within that column are "0" or blank. Additionally if the columns that have...
0
7237
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7137
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7349
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7074
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7506
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5659
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4734
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3210
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.