Hey Monks,
I have written a cgi script that uses HTML::TABLE to create a table from a database. Everything works correctly, however the table does not display with the correct format in Netscape though it works fine in IE. This is a new thing for me dealing with different browsers. If anyone knows anything or has any suggestions, it would be greatly appreaciated. Here is a snibet of my code in creating the table. Thanks again
use HTML::Table;
my @headers = ("<b><a href='pastRequests.pl?order=Custodial_Code&Name=
+$name'>Custodial Code</a></b>",
"<b><a href='pastRequests.pl?order=TIME&Name=$name'>Da
+te</a></b>",
"<b><a href='pastRequests.pl?order=Requestor_Name&Name
+=$name'>Requestor's Name</a></b>",
"<b>Requestor's Phone Number</b>", "<b>Contact Name</b
+>", "<b>Contact Phone Number</b>",
"<b>Building</b>", "<b>Room</b>", "<b>Decal #</b>", "<
+b>Descr</b>", "<b>Y2K</b>",
"<b>CPU</b>", "<b>LAB</b>" , "<b><a href='pastRequests
+.pl?order=Technician&Name=$name'>Tech</b>");
my $table = new HTML::Table(-border=>1);
$table->addRow(@headers);
my $rows=1;
print "<div id='printReady'>";
foreach my $row (@$ary_ref){
if ($rows % 20 == 0){
$table->addRow(@headers);}
$table->addRow(@$row);
$rows++;}
for ( 1 .. $table->getTableRows() ) {
$table -> setRowStyle( $_,'font-face=arial; size= 11' );
$table -> setRowAlign( $_,"center");}
$table->print;
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.