CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
How to create frameset in perl/cgi

 



terrykhatri531
User

Aug 30, 2014, 2:30 AM

Post #1 of 3 (1817 views)
How to create frameset in perl/cgi Can't Post

Hi,

I am trying to create a frameset as under, but it does not load the source targets :


Code
  
use CGI;

my $q = new CGI;



$q->frameset(
{-COLS=>'20%,80%'},

$q->frame
({
-name=>'Left',
-src=>'oratree.pl'
}),

$q->frame
({
-name=>'Right',
-src=>'querybuilder.pl'
})
);


Many thanks!!

Terry


(This post was edited by terrykhatri531 on Aug 30, 2014, 3:21 AM)


FishMonger
Veteran / Moderator

Aug 30, 2014, 6:23 AM

Post #2 of 3 (1811 views)
Re: [terrykhatri531] How to create frameset in perl/cgi [In reply to] Can't Post

That code doesn't output anything.

You need to output the header and then the frameset.

http://search.cpan.org/~leejo/CGI/lib/CGI.pm#WORKING_WITH_FRAMES

There are 2 key things you should focus on in that section of the documentation.

Quote
There is no specific support for creating <frameset> sections in CGI.pm, but the HTML is very simple to write.


Quote
The script "frameset.cgi" in the examples directory shows one way to create pages in which the fill-out form and the response live in side-by-side frames.



(This post was edited by FishMonger on Aug 30, 2014, 6:30 AM)


FishMonger
Veteran / Moderator

Aug 30, 2014, 6:45 AM

Post #3 of 3 (1807 views)
Re: [terrykhatri531] How to create frameset in perl/cgi [In reply to] Can't Post

Since the frameset tag is not supported in html5, you should use an iframe.

http://www.w3schools.com/tags/tag_iframe.asp

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives