re: Variable length tables
I have a DTML method which displays the result of a ZSQLmethod in a table. The size of the table is determined by the number of records returned from the database and is variable. As the table grows in size i find that i lose all the html formatting below it resulting in links appearing beside the table instead of below it. I must be doing something wrong but i can't see it. Can anyone help? regards garry
On Sat, 26 Jul 2003 01:58:46 +0100 GMT (..2:58 where i live(GMT+2) ) garry saddington asked the Zope mailinglist about the following:
I have a DTML method which displays the result of a ZSQLmethod in a table. The size of the table is determined by the number of records returned from the database and is variable. As the table grows in size i find that i lose all the html formatting below it resulting in links appearing beside the table instead of below it. I must be doing something wrong but i can't see it. Can anyone help?
sounds like you are producing broken HTML. Have you tried validating the output ? -- Geir Bækholt
On Friday 25 July 2003 19:51, Geir Bækholt wrote:
On Sat, 26 Jul 2003 01:58:46 +0100 GMT (..2:58 where i live(GMT+2) )
garry saddington asked the Zope mailinglist about the following:
I have a DTML method which displays the result of a ZSQLmethod in a table. The size of the table is determined by the number of records returned from the database and is variable. As the table grows in size i find that i lose all the html formatting below it resulting in links appearing beside the table instead of below it. I must be doing something wrong but i can't see it. Can anyone help?
sounds like you are producing broken HTML. Have you tried validating the output ? I've done some more testing and find that the pages display properly in Amaya but not in Mozilla or Konqueror. regards garry
-- Geir Bækholt
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
On Sat, 26 Jul 2003 03:56:03 +0100 GMT (..4:56 where i live(GMT+2) ) garry saddington asked the Zope mailinglist about the following:
I've done some more testing and find that the pages display properly in Amaya but not in Mozilla or Konqueror. regards garry
Amaya is merely a curiosity, and gives you no reference for real-life use. 99%+ percent of users are on IE, Opera, Mozilla. Validation is the way to check if your html table is ok. ( http://validator.w3.org/ ) You could also just read through the generated HTML, or even, as a last resort, post a bit of it to the list to try to find the fault. :) -- Geir Bækholt
On Friday 25 July 2003 21:23, Geir Bækholt wrote:
On Sat, 26 Jul 2003 03:56:03 +0100 GMT (..4:56 where i live(GMT+2) )
garry saddington asked the Zope mailinglist about the following:
I've done some more testing and find that the pages display properly in Amaya
but not in Mozilla or Konqueror. regards garry
Amaya is merely a curiosity, and gives you no reference for real-life use. 99%+ percent of users are on IE, Opera, Mozilla.
Validation is the way to check if your html table is ok. ( http://validator.w3.org/ )
You could also just read through the generated HTML, or even, as a last resort, post a bit of it to the list to try to find the fault.
Here is some of the offending code - am i doing it right? <dtml-var standard_html_header> <br> <dtml-in CountDetentions> <h4>There are currently <dtml-var count> outstanding detentions</h4> </dtml-in><h4>Accounted for by:</h4> <html> <body> <TABLE width=60% BORDER=1 Align=left BORDERCOLOR="#000000" CELLPADDING=0 CELLSPACING=0> <TR VALIGN=top> <TH WIDTH=17%> <P>Name</P> </TH> <TH WIDTH=17%> <P>Form</P> </TH> <TH WIDTH=17%> <P>Detentions</P> </TH> <TH WIDTH=17%> <P>Details</P> </TH> </TR> <dtml-in DetentionsByPupil> <TR VALIGN=TOP > <TD WIDTH=25%> <P><dtml-var name><BR> </P> </TD> <TD WIDTH=25%> <P align=center><dtml-var class><BR> </P> </TD> <TD WIDTH=25%> <P align=center><dtml-var count><BR> </P> </TD> <TD WIDTH=5% align=center> <form action=individual> <input type=hidden name=s value=<dtml-var studentid>> <input type="submit" value="more detail" > </form> </TD> </TR> </dtml-in> </TABLE> #everything below here displays at the side of the table when i want it below# <br><br> <a href=Detentions><font size="+1">To detention choice screen</font></a><br><br> <a href=Bugzilla><font size="+1">Bugzilla</font></a><br> </body> </html> <dtml-var standard_html_footer> Thanks in advance garry
garry saddington wrote:
Here is some of the offending code - am i doing it right?
<snip> Something else I'd suggest is using ZPT instead of DTML. It's much harder to generate broken html (which this alsmost certainly is) with ZPT... cheers, Chris
participants (3)
-
Chris Withers -
garry saddington -
Geir Bækholt