BB Unix Network Monitor - Message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: {bb} HTML table formatting
Andrew Dalgleish wrote:
>
>
> > line 336 column 1 - Warning: trimming empty <table>
> > Will have to look into this one...
> [Andrew Dalgleish]
> I've got a patch to fix the empty table (for both dialup & summary).
> If you wan't I'll send it along.
> You need to test whether the table is needed outside their respective
> loops.
> Unless someone knows how to pass an env var back outside a "cat foo |
> while read line" loop?
sure, send it over...
To may work to pass a variable back but I'm not sure if it works
on all /bin/sh out there (at this point everyone know I'm a bit weary
of Solaris and Digital Unix)
set it up this way (YMMV):
exec < foo
count=0
while read line
do
count=`expr $count + 1`
done
echo $count
exec <&2
A pseudo subshell is always create when input is redirected into
a while/for/until/do/case statements (and when output is also
redirected from them).
So by doing exec < foo you specify that all input will be from
the file foo and no input needs to be redirected on the while loop
which executes in the same subshell.
Gee, I'd totally forgotten about this, that was a good question :)
>
> > line 53 column 16 - Warning: missing </h4> before <pre>
> > line 53 column 16 - Warning: trimming empty <h4>
> > same problem as code, but you can't make <pre> text as header
> [Andrew Dalgleish]
> I changed <H4> to <FONT SIZE="+1">...</FONT>
> Using <Hn> headers makes lynx insert a newline, which makes a mess of
> column headings.
Humm, I'm surprised Henrik didn't complain about this ;)
But it doesn't really matter before each ALT tag is made up of
service:color so you don't need the column heading in Lynx.
>
> > BTW, 'tidy' can be used to fix your pages, use it on you co-worker's
> > HTML output and then fix his errors ;)
> > Take a look at: http://www.w3.org/People/Raggett/tidy/
> [Andrew Dalgleish]
> I already had. :-)
>
> > Error at line 54:
> > (truncated)d.gif" ALT="red" HEIGHT=12 WIDTH=12> / (49%) has reached
> > the
> > document type does not allow element "IMG" here
> > Humm, It really doesn't like the <IMG SRC> tag within a <PRE></PRE>
> > I don't know if this is legal
> > This is found in the .disk/.procs output where colored dots appear
> > with the text
> [Andrew Dalgleish]
> I patched bbd.c to add <PRE>...</PRE> to each line, and only if the line
> does not contain a "<".
> I know, it's ugly.
Yup, but until somebody tells me that it doesn't work, it's staying
that way ...
>
> > Error at line 68:
> > (truncated)GE SRC="../gifs/buthist.gif" ALT="History"
> > BORDER=0><INPUT
> > TYPE=HIDDEN
> > there is no attribute "BORDER"
> > (explanation...)
> > Didn't know you couldn't have a BORDER tag when specifying an IMAGE
> > as INPUT TYPE. I'll remove it... nope. Netscape actually uses
> > it and
> > the border around the "HISTORY" button looks ugly so it stays.
> > Don't
> > know
> > what IE thinks but I don't care
> [Andrew Dalgleish]
> I changed the ALT="" to NAME="".
Thanks for that one
> I'm still thinking about the BORDER attribute - there has to be a way.
>
I know, maybe would could complain to W3C :)
> To make non-visual browsers happy I used <CAPTION> and <TH> instead of
> <TD> like this:
> <TABLE BORDER=1><CAPTION>Foo Bar</CAPTION>
> <TR><TH>foo</TH><TH>bar</TH></TR>
> <TR><TD>hum</TD><TD>bug</TD></TR>
> </TABLE>
>
> The problem is that the floating CAPTIONS look ugly, but then I noticed
> the nested summary tables.
> <TABLE BORDER=1><TR><TD>
> ... insert main table here ...
> </TD></TR></TABLE>
> The borders look a little busy, but not too bad.
If it looks ugly, I want no part of it ! ;)
But what problem are you solving ?
>
> This actually passes the accessibility test at
> http://www.cast.org/bobby/
Sean will get a kick of that name,
Hey, I've seen this site before ...
I'll Bobbify it when I get a chance...
> (OK, with quite a few warnings :-)
I'll have to try that one.
>
> A side benefit - you don't need to count the columns to use COLSPAN, so
> the scripts are actually shorter (& simpler).
How's it behave with 2.0 browsers ?
>
> > Now, will all this make your HawaIE 50 friend happy ? Would he get as
> > a quick reponse from his friends in Redmond as you got here ? And
> > actually,
> > get a fix ? ;)
> [Andrew Dalgleish]
> No, now he will be really annoyed that a few lines of shell script can
> do *much* better than his multi-megabyte nuclear powered waffle iron.
Yeah and Sun's getting into that business with Jini ;) We've got
the cold war up and running again. Who will out megabyte the other ?
> :-)
> Cool, huh?
yup and thanks again
--
Robert-Andre Croteau BSD,MOTU robert@unix.sh
Services Conseils Informatiques MOTU Inc. robert@motu.ca
(514) 465-3057 rcroteau@videotron.ca
http://www.motu.ca/ http://www.bb4.com
Si le bonheur ne s'achete pas alors louez le.
-
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=
To unsubscribe from this list, or to subscribe to the bb-digest list
send e-mail to mailto:majordomo@bb4.com with unsubscribe bb -and/or-
subscribe bb-digest in the BODY of the message.
Home |
Main Index |
Thread Index