CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> General -> Web Design

 using div and display/visibilitiy attribute to hide html code

Print topic Send  topic

Author Message
CodeChargenewbie

Posts: 114
Posted: 11/28/2007, 8:24 AM

Quote :
<div id="id1" style="visibility:hidden">show this
<tr class="Controls">
<th>Color</th>

<td><input maxlength="50" size="25" value="{Color}" name="{Color_Name}"></td>
</tr>

<tr class="Controls">
<th>Height</th>

<td><input maxlength="25" size="25" value="{Height}" name="{Height_Name}"></td>
</tr>

<tr class="Controls">
<th>Weight</th>

<td><input maxlength="50" size="25" value="{Weight}" name="{Weight_Name}"></td>
</tr></div>


I've been looking all over the place to figure out why my page was still displaying the textboxes and everything between the div tags. For whatever reason, "show this" will hide, but the rest of the code is unaffected. Is there a way to hide said code using div and display/visibility or must I specifically add style = "visibility:hidden" to each table row? There must be a way to hide a set of code in one fell swoop.
View profile  Send private message
mamboBROWN


Posts: 1713
Posted: 12/06/2007, 7:43 PM

CodeChargenewbie
Are you able to use CCS panels ( http://docs.codecharge.com/studio32/html/ProgrammingTec...l/Overview.html ) for this issue??
View profile  Send private message
DonB
Posted: 12/12/2007, 5:14 AM

You can't insert a DIV wthin a table like that. Use a TBODY (or THEAD, or
TFOOT) instead. And put 'show this' into a TR/TD, too. You can't put other
HTML tags inside a table, but outside the TR/TD structure.

--
DonB

http://ccswiki.gotodon.net


"CodeChargenewbie" <CodeChargenewbie@forum.codecharge> wrote in message
news:18474d965785462@news.codecharge.com...
>
Quote :
<div id="id1" style="visibility:hidden">show this
> <tr class="Controls">
> <th>Color</th>
>
> <td><input maxlength="50" size="25" value="{Color}"
> name="{Color_Name}"></td>
> </tr>
>
> <tr class="Controls">
> <th>Height</th>
>
> <td><input maxlength="25" size="25" value="{Height}"
> name="{Height_Name}"></td>
> </tr>
>
> <tr class="Controls">
> <th>Weight</th>
>
> <td><input maxlength="50" size="25" value="{Weight}"
> name="{Weight_Name}"></td>
> </tr></div>
>
>
>
> I've been looking all over the place to figure out why my page was still
> displaying the textboxes and everything between the div tags. For
whatever
> reason, "show this" will hide, but the rest of the code is unaffected. Is
there
> a way to hide said code using div and display/visibility or must I
specifically
> add style = "visibility:hidden" to each table row? There must be a way to
hide
> a set of code in one fell swoop.
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.