Hi there Kate,
As Ken also pointed out, it now goes beyond plain HTML and into the
logic of your ASP routines; for now, I think we successfully solved the
problem with the HTML result.
Sorry if during this discussion I may have expressed myself not so
clearly...
Sincerely,
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
<mihai paraschiv>
<Web developer>
<(+40)92.352.919>
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
-----Original Message-----
From: Kate Twin [mailto:kate@e...]
Sent: Tuesday, November 06, 2001 4:55 PM
To: HTML Code Clinic
Subject: [html_code_clinic] RE: Dynamic calendar table
yes, that seems to work so that would be one way of doing it, although
it
would make my asp code way more complicated if i have to check for
entries
before using different code for 2, 3, 4 or 5 rows, but i might give it a
go if my other 'fix' doesn't work out....
cheers,
kate
> Yes, that was what I meant...
> Still, back to the rowspans - why won't you turn that "rowspan=3D3D5"
into
> "rowspan=3D3D3" ? You only have 3 rows, without taking into account
the
> empty <tr></tr> (which won't be needed once you change the rowspan
> value...)
>
> To see what I mean, check table 4 below, which outputs exactly like
your
> table 3:
>
> TABLE4:
>
> <table width=3D3D"409" border=3D3D"1" cellpadding=3D3D"1"
cellspacing=3D3D"1">
> <tr>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"3"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"3"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"3"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"3"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"3"> </td>
> <td width=3D3D'83' height=3D3D'37'> </td>
> <td width=3D3D'83' height=3D3D'37'> </td>
> </tr>
>
> <tr>
> <td width=3D3D'167' bgcolor=3D3D'white' height=3D3D'18' =3D
> colspan=3D3D"2"
> align=3D3D"center">entry</td>
> </tr>
> <tr>
> <td width=3D3D'83' height=3D3D'37'> </td>
> <td width=3D3D'83' height=3D3D'37'> </td>
> </tr>
> </table>
>
>
>
>
>
>
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
3D=3D20
> <mihai paraschiv>=3D20
> <Web developer>=3D20
> <(+40)92.352.919>=3D20
>
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
3D=3D20
>
>
>
> -----Original Message-----
> From: Kate Twin [mailto:kate@e...]
> Sent: Tuesday, November 06, 2001 3:00 PM
> To: HTML Code Clinic
> Subject: [html_code_clinic] RE: Dynamic calendar table
>
>
> well i check to see if the record value is <>"" before trying to print
> it
> out, and if =3D3D"" I print is that what you mean? the strange
=3D
> thing
> is i
> had the same problem when taking the raw html generated by my asp
code.
> Try
> each of these tables in a blank document and see what i mean:
>
> TABLE1:
>
> <table width=3D3D"409" border=3D3D"1" cellpadding=3D3D"1"
cellspacing=3D3D"1">
> <tr>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> </tr>
> <tr>
> <td width=3D3D'167' bgcolor=3D3D'white' height=3D3D'18' =3D
> colspan=3D3D"2"
> align=3D3D"center">entry</td>
> </tr>
> <tr>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> </tr>
> </table>
>
> TABLE2:
>
> <table width=3D3D"409" border=3D3D"1" cellpadding=3D3D"1"
cellspacing=3D3D"1">
> <tr>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> </tr>
> <tr> </tr>
> <tr>
> <td width=3D3D'167' bgcolor=3D3D'white' height=3D3D'18' =3D
> colspan=3D3D"2"
> align=3D3D"center">entry</td>
> </tr>
> <tr>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> </tr>
> <tr> </tr>
> </table>
>
> TABLE3:
>
> <table width=3D3D"409" border=3D3D"1" cellpadding=3D3D"1"
cellspacing=3D3D"1">
> <tr>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'94'
rowspan=3D3D"5"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> </tr>
> <tr> </tr>
> <tr>
> <td width=3D3D'167' bgcolor=3D3D'white' height=3D3D'18' =3D
> colspan=3D3D"2"
> align=3D3D"center">entry</td>
> </tr>
> <tr>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> <td width=3D3D'83' height=3D3D'37'
rowspan=3D3D"2"> </td>
> </tr>
> </table>
>
> TABLE3 is the layout I was after, although TABLE1 was the code I
> expected to
> give the correct results in the first place..........?
>
> I looked at it in IE6.0
>
> Thanks
>
> Kate
>
>
> ----- Original Message -----
> From: "Mihai Paraschiv" <Mihai.Paraschiv@c...>
> To: "HTML Code Clinic" <html_code_clinic@p...>
> Sent: Tuesday, November 06, 2001 12:23 PM
> Subject: [html_code_clinic] RE: Dynamic calendar table
>
>
> > indeed, but I wonder, after all why would it force you to specify
the
> > rows if they are empty ?
> >
> > coming back, build a small asp filter to determine empty recordsets
> and
> > elliminate 'em from the general layout... would it solve the problem
?
> >
> >
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
3D
> > <mihai paraschiv>
> > <Web developer>
> > <(+40)92.352.919>
> >
=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D3D=3D
3D
> >
> >
> >
> > -----Original Message-----
> > From: Kate Twin [mailto:kate@e...]
> > Sent: Tuesday, November 06, 2001 1:58 PM
> > To: HTML Code Clinic
> > Subject: [html_code_clinic] RE: Dynamic calendar table
> >
> >
> > Hi Mihai
> >
> > I think you've proved my point about my code not being "*not* valid
> > HTML,
> > because the first row has 3 cells, and the second has
> > only 2" due to the fact there was a rowspan....
> >
> > I have found a way to solve my problem, as for some reason even
though
> > the
> > <tr> </tr> tags are empty ie. contain no <td> </td> cells, I need to
> > include them to get the correct layout, but ONLY IF there are
entries
> in
> >
> > the following rows. If the empty <tr> </tr> is included and the next
> row
> > (s) is/are also empty then it puts the table out of alignment.
> >
> > Still not sure why the empty <tr></tr> tags need to be included at
all
> > but
> > it was the only way to output the correct dimensions for the table.
> >
> > Thanks,
> >
> > Kate
> >
> >
> > > Kate,
> > >
> > > subtracting is not the answer, you also had to close the table
rows.
> > > Besides it's about table rows, not cols...
> > >
> > > For instance, if you had a cell with ROWSPAN=3D3D3D5 you would =3D
> generate
> a
> > > corect layout like this:
> > >
> > > <table border=3D3D3D1>
> > > <tr><td rowspan=3D3D3D5>rowspan=3D3D3D5</td><td>cell 1
spanned</td></tr>
> > > <tr><td>cell 2 spanned</td></tr>
> > > <tr><td>cell 3 spanned</td></tr>
> > > <tr><td>cell 4 spanned</td></tr>
> > > <tr><td>cell 5 spanned</td></tr>
> > > </table>
> > >
> > > Instead, if you had a cell with COLSPAN=3D3D3D5 you would generate
a
> > corect
> > > layout like this:
> > >
> > > <table border=3D3D3D1>
> > > <tr><td colspan=3D3D3D5>colspan=3D3D3D5</td></tr>
> > > <tr>
> > > <td>column 1 spanned</td>
> > > <td>column 2 spanned</td>
> > > <td>column 3 spanned</td>
> > > <td>column 4 spanned</td>
> > > <td>column 5 spanned</td>
> > > </tr>
> > > </table>
> > >
> > >
> > > (please, paste them into a test html page to see how they work)
> > >
> > >
> > > you also have to pay attention to the difference between rowspan
and
> > > colspan, and particularly which requires you to close the tr and
> where
> > > exactly...
> > >
> > > Further reference can be found on the W3 Consortium site, in the
> HTML
> > > 4.01 Recommendation:
> > > http://www.w3.org/TR/html4/struct/tables.html#h-11.2.6.1
> > > (cells that span several rows or columns)
> > >
> > > hth,
> > >
> > > =3D
>
=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D
3D3D=3D3D3D=3D3D3D=3D3D3D=3D3
D=3D
> 3D=3D3D20
> > > <mihai paraschiv>=3D3D20
> > > <Web developer>=3D3D20
> > > <(+40)92.352.919>=3D3D20
> > > =3D
>
=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D3D3D=3D
3D3D=3D3D3D=3D3D3D=3D3D3D=3D3
D=3D
> 3D=3D3D20
> > >
> > >
> > >
> > > -----Original Message-----
> > > From: Kate Twin [mailto:kate@e...]
> > > Sent: Tuesday, November 06, 2001 12:14 PM
> > > To: HTML Code Clinic
> > > Subject: [html_code_clinic] RE: Dynamic calendar table
> > >
> > >
> > > so what happens when you have a 7col, 5row table with a rowspan of
5
> > for
> > >
> > > the first five cells, surely you have only 2 cells on the next row
> > to=3D3D20
> > > refer to due to the rowspan?
> > >
> > >
> > >
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > > From: "Kate Twin" <kate@e...>
> > > > Subject: [html_code_clinic] RE: Dynamic calendar table
> > > >=3D3D20
> > > >=3D3D20
> > > > : The problem isn't the as I include that as a default
for
> > all
> > > the
> > > > : cells, it's whether or not the <tr> </tr> tags should be
written
> > to
> > > the
> > > > page
> > > > : when there are no entries for that row, eg:
> > > >=3D3D20
> > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> > > >=3D3D20
> > > > Kate,
> > > >=3D3D20
> > > > As Mihai has stated, the easiest way to *solve* this problem is
to
> > > output
> > > > valid HTML.
> > > >=3D3D20
> > > > <tr>
> > > > <td> </td>
> > > > <td> </td>
> > > > <td> </td>
> > > > </tr>
> > > >=3D3D20
> > > > <tr>
> > > > <td colspan=3D3D3D"2"> </td>
> > > > </tr>
> > > >=3D3D20
> > > > is *not* valid HTML, because the first row has 3 cells, and the
> > second
> > >
> > > has
> > > > only 2. My guess is that your unpredicable problems are being
> caused
> > > by a
> > > > combination of:
> > > > a) empty rows
> > > > b) uneven column numbers in the populated rows.
> > > >=3D3D20
> > > > Rewrite your ASP so that *each* rows contains the *same* number
> > of=3D3D20
> > > <td>data
> > > > here</td> cells. Do not write empty <tr></tr> rows, do not
> write=3D3D20
> > > <tr></tr>
> > > > that contain mismatched numbers of <td></td> cells - then your
> > problem
> > >
> > > will
> > > > go away.
> > > >=3D3D20
> > > > Sorry if that's not what you want to hear, but it will solve
> your=3D3D20
> > > problem...
> > > >=3D3D20
> > > > Cheers
> > > > Ken
> > > >=3D3D20
> > > >=3D3D20
> > >
> > > mihai.paraschiv@c...
> > > $subst('Email.Unsub')
> >
> > mihai.paraschiv@c...
> > $subst('Email.Unsub')
> >
> kate@e...
> $subst('Email.Unsub')
> >
>
>
>
> mihai.paraschiv@c...
> $subst('Email.Unsub')
mihai.paraschiv@c...
$subst('Email.Unsub')