Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

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

Replies are listed 'Best First'.
Re: column sizes on the fly
by neniro (Priest) on Mar 04, 2004 at 17:14 UTC
    I see two ways for you:
  • 1. You use javascript to update both frames
  • 2. You use one frame and try it with XHTML and CSS (using divs )

    best regards,
    neniro