For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > October 2006 > Get data into frame









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Get data into frame
Beginner

2006-10-23, 7:55 am

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.



Mumia W.

2006-10-23, 6:55 pm

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-
> 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.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com