473,387 Members | 1,575 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Body hidden, but table borders still visible.

I've searched around and don't find the following incident discussed
specifically.

First, a comment from an experience programmer new to javascript:

While I am new to javascript, I've programmed in a dozen other
languages for decades, and now have been working in javascript
intensively for several weeks. My first comment -- which has nothing
to do with this problen -- is on how its richness makes it so
difficult to provide adequate reference material. After working only
with what I could discover through Google searches and actually
writing some nifty fast incremental select element populating code --
what I found on the Web, which has been cited in many locations, is
ugly code and sloooow when search a list of, say, 2000 possible
entries for inclusion in the box -- just with those hints.

I finally broke down, bought what the reveiws say are the two most
complete books -- Javascript Bible and Dynamic HTML, The Definitive
Reference (both by Goodman), and am aghast: With the "Bonus Chapters"
in the former, they total more than 3,000 pages! And with their
in-depth indexes, it's still very difficult to find what one needs.
(The HTML and CSS speification publications add another 400 pages . .
..) As a truly elementary example: I wanted to return from a function
as a result of a test, not by running it out: The "return" is not
indexed, nor are any of the words that might lead one to it. In fact,
it is shown in some examples about 980 pages into the book, but
nowhere is it actually documented. Yes, I know, every language has a
"return" statement, but its usage and syntax varies -- and on some
occasions, it's actually called something else.

So, to my current issue. For reasons that are valid -- please don't
ask, "Why do you want to do that?" -- I need to hide the page in its
entirety until the onload script has altered it based on certain
criteria. After doing a lot of brute force stuff -- setting font
color to "white", etc., etc. -- I discovered that one can put the
attribute style="visibility:hidden" directly in the <body> tag --
which itself is not easily discovered. But: Tables in the body that
have a non-zero "border" attribute still show -- just the borders!

Yes, I know I need to learn CSS as well; give me a break, guys! I do
have that spec as an HTML doc, and it was there I finally found this
out. You know, you can't look such things up by concept in the
indexes of either book, or the HTML spec, or the CSS book, unless you
already know the term that implements it; if I know the term, I don't
need to look it up! In any case, try looking up "hidden" in either
book; you get no hint that it can be applied via style to any element.
If you know it's available as a style attribute, then know the
attribute is "visibility", why than you can find it . . . and by that
time, you must know enough that you don't need to find it. (Again, a
Google Groups search on words associated with the concept told me what
terms to use, and then I didn't need to use the book . . .)

I apologize for the rant (Fortran was good enough for my grandfather,
it was good enough for my father, and it's good enough for me -- bah,
humbug!), but it's been a very frustrating couple of weeks.

The real question: What about them table borders? So far, I'm
defining their values as zero, then setting them to their final values
at the same point that I make the body visible. Should I need to do
all that? What should make that unnecessary?
Jul 23 '05 #1
4 1914
NeverLift wrote:
<snip>
While I am new to javascript, I've programmed in a dozen other
languages for decades, and now have been working in javascript
intensively for several weeks. ... <snip> I finally broke down, bought what the reveiws say are the two most
complete books -- Javascript Bible and Dynamic HTML, The Definitive
Reference (both by Goodman), and am aghast: With the "Bonus Chapters"
in the former, they total more than 3,000 pages!
I would have thought that for an experienced programmer the ECMAScript
specification (ECMA 262 3rd edition) would be the best source of
information specifically related to javascript as a programming
language.

This newsgroup's FAQ has a (very) short section on books about
javascript:-

<URL: http://jibbering.com/faq/#FAQ3_1 >

- it doesn't list any books by Goodman.

<snip> I apologize for the rant (Fortran was good enough for my grandfather,
it was good enough for my father, and it's good enough for me -- bah,
humbug!), but it's been a very frustrating couple of weeks.
In my opinion javascript lends itself very well to browser scripting
because its loose typing and dynamic nature allows it to be flexible in
the face of the diverse environments client-side code encounters. Trying
to script a browser using a rigidly typed language with fixed class
definitions, like Java, would make the task considerably harder than it
currently is. I can't see Fortran being at all suitable.
The real question: What about them table borders? So far, I'm
defining their values as zero, then setting them to their final values
at the same point that I make the body visible. Should I need to do
all that? What should make that unnecessary?


The last time I looked as a script/HTML/CSS where someone was
complaining about not being able to conceal table borders with the CSS
visibility property the cause was a bogus CSS property in an associated
STYLE element (An unexpected interaction as CSS is supposed to ignore
properties that it does not understand) and it only happened in one
browser (IE).

But without seeing code nobody is going to be able to do any more than
guess as to a possible cause. I would recommend that you create a short
test page that demonstrates the problem in isolation and post it (though
if you are not actually setting the visibility property with javascript
then it is probably actually a CSS question -
comp.inforsystems.www.authoring.stylesheets ).

Richard.
Jul 23 '05 #2
Juliette was on 29-05-2004 inspired enough to write :
I've searched around and don't find the following incident discussed
specifically.

First, a comment from an experience programmer new to javascript:
**snip**
So, to my current issue. For reasons that are valid -- please don't
ask, "Why do you want to do that?" -- I need to hide the page in its
entirety until the onload script has altered it based on certain
criteria. After doing a lot of brute force stuff -- setting font
color to "white", etc., etc. -- I discovered that one can put the
attribute style="visibility:hidden" directly in the <body> tag --
which itself is not easily discovered. But: Tables in the body that
have a non-zero "border" attribute still show -- just the borders!
**snip**
The real question: What about them table borders? So far, I'm
defining their values as zero, then setting them to their final values
at the same point that I make the body visible. Should I need to do
all that? What should make that unnecessary?


Ignoring the rant, this is more of a CSS question than anything else.
I suggest you try using:
BODY { display: none; }
or alternatively (if that table you are using is a layout table):
#IDOFTABLE {display: none; }

Good luck, Juliette
Jul 23 '05 #3
JRS: In article <98**************************@posting.google.com >, seen
in news:comp.lang.javascript, NeverLift <ga**@labdata.com> posted at
Fri, 28 May 2004 15:33:03 :
After working only
with what I could discover through Google searches
... I finally broke down, bought what the reveiws say are the two most
complete books -- Javascript Bible and Dynamic HTML, The Definitive
Reference (both by Goodman), and am aghast:
With all that Googling, you should have found and read our FAQ. Section
3.1 is quite explicit.

Edition 1 of the Pocket Flanagan has "return", just where and as it
should be. Admittedly it is not indexed; but there is no index in the
Pocket. I presume, therefore, that "return" can readily be found in the
full Flanagan. The present edition is the 4th; the 3rd was 790 pages.

<FAQENTRY> Add book pagecounts? Pocket 1st Edn is ~ 96pp.

Yes, I know, every language has a
"return" statement, but its usage and syntax varies -- and on some
occasions, it's actually called something else.


Not so; Pascal and Delphi functions do not use one. It is necessary to
assign to the name of the function, /alias/ Result; but that does not
exit.

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 IE 4 ©
<URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang.javascript
<URL:http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
Jul 23 '05 #4
Well, to pick at nits . . . I used quotes around the "return" to
indicate that it may be a different word in other languages, but that
all (that I know about) have some statement that exits a subprogram.
Paying over 50 bucks for a book with 1,600 pages and 90 pages in its
index that does not cite the concept in that index . . . arrgh!

Curiously, in my first language (after Assembler), Fortran (now you can
figure my age -- when it was an IBM invention and had no numbers after
the word, and McCracken was The Authority -- I taught it at Purdue
using his book), the return statement exits from the subprogram but, if
that is a function, you must have separately set the function name to
the returned value.

But thanks to all who recommended solutions, and apologies for the
multiple postings. I was accessing this through the Google Groups
search, didn't know the URL to get to it directly -- and I only posted
two messages, the first of which it couldn't find two days later which
is why I submitted the second version; the rest are Google's doing. I
know better now . . .
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Kev | last post by:
Hello, I'm pretty sure this is the right place to post and I hope someone can help me. I'm more of a cgi scripter, so I'm not 100% familiar with stylesheets but I know enough to get by. The...
7
by: NeverLift | last post by:
I posted a very long message regarding my experiences with JavaScript, one reply was posted asking I post an example of the problem -- and both are gone! Is there a moderator that removes such...
16
by: Barbara de Zoete | last post by:
Here's what I'm trying to do: Create a table with generic style property . Have a few table cells in the thead that 'have to' melt into eachother, so needing the style . Looking somthing...
10
by: phil-news-nospam | last post by:
I have a table with 3 columns in 1 row. I want to increase the spacing _between_ the columns (gutter) _without_ increasing the spacing between those columns and the table itself. Is there a way...
5
by: GiftX | last post by:
Hello members, I need help with my spreadsheet display problem. I generated my spreadsheet in using vb6. Everything is working except that when I display the display (making it visible), some of...
7
by: Henry | last post by:
On Jul 2, 5:57 pm, Jorge wrote: <snip> <snip> The specified values for the CSS 'visibility' property do not include 'none'. Such a declaration should be ignored, and if not ignored can be...
6
by: msoliver | last post by:
I'm trying to figure out why the following creates a vertical scroll bar. Browser is IE 7 - using XHTML 1.0. I expand html and body to height of 100% and then I want to put a border around the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
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
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
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...

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.