473,545 Members | 937 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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="visibili ty: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 1938
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.inforsyste ms.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="visibili ty: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.c om> 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.demo n.co.uk/js-index.htm> jscr maths, dates, sources.
<URL:http://www.merlyn.demo n.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
2468
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 problem I am having is this: I have a table with two colums. I the first colum is just text. In the second there is 1) an image and 2) a form with just...
7
2734
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 stuff? In any case, here is the issue in brief: I want to keep the page invisible while my onload script decides how to format it, setting colors,...
16
3197
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 like: ,------------.------------. | | header |
10
11023
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 to do that in CSS without having to code in extra dummy columns in HTML to create gutters? --...
5
1954
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 the data in the rows hides underneath the row lines. I have to physically go into the spreadsheet to expand the rows to see the hidden data. Also, if...
7
3535
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 expected to be subject to inconsistent handling.
6
8133
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 whole viewport. What happens is that I get a vertical scrollbar (which I can hide, of course). Essentially what I'd like to know why adding a...
0
7401
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7807
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5971
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5326
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4944
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3450
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3442
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1014
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.