On 10/23/2006 08:37 AM, Beginner wrote:
Hi,
I have a html document with links to a perl cgi scripts. The script
gets some file information and I want the returned page to have the
data from the script in one frame and a different location in the
other but I'm not sure how.
If I so something like:
#!/usr/bin/perl
use strict;
use warnings;
use CGI qw(standard:);
my $q = new CGI;
print $q->header();
print $q->frameset({rows=>'30%,*',border=>'1'});
print $q->frame({name=>'fileinfo',scrolling=>'auto'});
print $q-
frame({src=>'http://someserver.com',name=>'otherinfo',scrolling=>'aut
o'});
... a bit of processing here but how do I get my data into the frame
named fileinfo?
I have tried to create a new instance of CGI (my $r = new CGI) and
have the start_html target fileinfo but it simply pours into the end
of main document.
Is it possible to do this? Any hints on how?
TIA.
Dp.
This is just a guess:
print $q->frame( { name=> 'fileinfo', scrolling => 'auto' },
"<p> My content goes here. </p>" );
Naturally, your content would involve calls to various CGI methods.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>