I am some what of a newbie so please be kind!! Although this will sound like a web design question, please just hear me out. I am using CGI::Application and Html::template to create a search query of a database. I am trying to use two frames to display my tables. One with the headers for the columns and the other the table of information. I have no problem displaying the information occurdingly, however how can I set the size of the columns on the fly to equal each other on both the column frame and the table frame. Originally, I had creeated just one frame for both, however when you scroll down the table I wanted to see the column headings. This is my frames run mode.
sub frames{
my $self = shift;
my $q = $self->query();
my $template_frames = HTML::Template->new(filename => 'c:/program
+files/apache group/apache/cgi-bin/frames.html');
my $string = "?rm=result&";
foreach my $param ($q->param) {
if ($param ne 'rm') {
$string.= $param . "=" . $q->param($param) . "&";}}
$template_frames->param(headers => $string . "view=header");
$template_frames->param(table => $string . "view=table");
return $template_frames->output;
}
Currently I am calling the same run mode for both frames, but I'm guessing this isnt the best idea. Any general thoughts will be much apprecaited. Thanks
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.