CGI Perl : only frame is getting updated


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting CGI Perl : only frame is getting updated
# 1  
Old 12-05-2013
CGI Perl : only frame is getting updated

I am working on CGI perl and trying to overcome the below problem..

I have divided the page into 3 frames( attached the screenshot) how to my frameset look like.

In frame2, there will be a cgi script consisting on names(links), when clicked on link , the frame3 should get changed.

But in my code.. If I click on frame2 link only the frame2 is refreshed and only frame2 is refreshed.

But as pe my requirement the frame3 should be changed.

I am assuming some onclick should work here but not sure.

Could anyone please help me ?

Regards,
R


#####################################

Code:
#!/usr/bin/perl


use strict;
use warnings;
use CGI;


my $hostname = $ENV{'HTTP_HOST'};
my $form = new CGI;

 


        print  $form->header;

        print $form->start_form( -method => 'POST' , -name => 'mainform' , -id => "main_form" );


        print $form->start_html( -title => "Global Network Services");
        print $form->br();
        print $form->body({-bgcolor=>"#ff9900"});

        print $form->br();
        print $form->a({  -href=>"./welcome.cgi"
                          -onClick=>"parent.location='./welcome.cgi'  " },
                          "Homepage"
                      );
        print $form->br();
        print $form->br();
        print $form->b( "top N Reports" );
        print $form->br();
        print $form->br();
        print $form->a({ -name=>"NormalizedMemoryInfo" -href=>"./NormalizedMemoryInfo.cgi"},"Memory Utilization");

        print $form->br();

        print $form->a({ -name=>"NormalizedCPUInfo" ,   -href=>"./frametestnew.cgi"},"CPU Utilization");
        print $form->br();
        print $form->p();
        print $form->end_form;
        print $form->end_html;

######################################
CGI Perl : only frame is getting updated-framejpg

Last edited by Franklin52; 12-05-2013 at 06:58 AM.. Reason: Please use code tags
# 2  
Old 12-05-2013
It would be better to include the actual html that results from your cgi's when the page is rendered so we can see the link you are talking about. I think you can elect to refresh the frameset instead of just the frame. Post the html of the page, this can be done by pulling up the page in the browser and viewing the source (Note: view the source of the entire page not just the frame)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. OS X (Apple)

Perl CGI

I am trying to get my MacBook Pro with 10.8 Mt Lion set up to run Perl CGI scripts. Having a problem. I can start Apache Web Server with no problems. Why do I put the static and dynamic scripts? I which directory? I have looked at this article:... (3 Replies)
Discussion started by: djehresmann
3 Replies

2. Shell Programming and Scripting

Perl : unable to frame code with Business:Hours module with example

Hi all , There are two datetimes in the below format $datetime1="2007-12-31 16:50:00"; $datetime2="2008-1-1 04:24:00"; I need to calculate time in minutes only in between the office hours.(08:00 to 18:00 ). in PERL. For the above requirement I found a module Business::Hours that... (4 Replies)
Discussion started by: scriptscript
4 Replies

3. Shell Programming and Scripting

CGI Perl : while loop in CGI perl

Hi Team, I am trying to connect to database(succeeded ) and print the records on the browser using while loop. But the elements of array are not displayed instead while loop is displayed directly. Instead of the below I can embed html statements in print but I am looking for the below style as I... (1 Reply)
Discussion started by: scriptscript
1 Replies

4. Shell Programming and Scripting

Perl CGI : unable to download the excel sheet from perl cgi page

Hi All, I have written an cgi perl script that displays an image(Excel image) and when clicked on that Image I need to download a excel sheet. I made sure that excel sheet exists in the folder with the given name but still I am not able to download the sheet. print "<center><table... (2 Replies)
Discussion started by: scriptscript
2 Replies

5. Shell Programming and Scripting

Perl cgi pages out of cgi-bin folder in WINDOWS

Hi team, I have a typical problem with cgi pages in apache webserver in WINDOWS I am able to execute(display) the pages that are saved in cgi-bin folder. But I am not able to execute the pages stored in htdocs or other folder other than cgi-bin folder. Could anyone please let me know how... (1 Reply)
Discussion started by: scriptscript
1 Replies

6. Shell Programming and Scripting

CGI in Perl

Hi, Am unfamiliar with using CGI modules in Perl. Though i checked in few sites about CGI , i dint get a clear idea. Can anyone please explain me the purpose of these statements, it ll be very helpful to me #!/usr/bin/perl use CGI qw/:standard/; use Storable; use Data::Dumper; my... (1 Reply)
Discussion started by: irudayaraj
1 Replies

7. Web Development

problem with exporting vairable from one perl cgi to another perl cgi script while redirecting.

Can anyone tell me how to export a variable from one perl CGI script to another perl cgi script when using a redirect. Upon running the login.pl the user is prompted to enter user name and password. Upon entering the correct credentials (admin/admin) the user is redirected to welcome page. My... (3 Replies)
Discussion started by: Arun_Linux
3 Replies

8. Shell Programming and Scripting

CGI , Perl and Trees

I have been trying to get this for weeks now but maybe someone knows or has a snippet of code to display a collapsible tree view. something like this: +Yahoo! -/site.html -/site2.html +Google -/site.php -/site2.php (1 Reply)
Discussion started by: Dabheeruz
1 Replies

9. UNIX for Dummies Questions & Answers

Apache Perl/CGI

Can any body help me with apache and cgi i'dont know how iconfigure apache to use cgi... and when i try to start apachectl it says there is no file... please help me...i have apache installed... (1 Reply)
Discussion started by: CreamHarry
1 Replies

10. Shell Programming and Scripting

Perl CGI.pm

my box is FreeBSD4.3 and I use Perl 5.0005_03. Here is the CGI script. test.cgi ...... if ($query->action eq 'detail') { ...... print $query->hidden('action', 'modify'); ...... } I found that the result of test.cgi?action=detail is not what I expected. the script does not... (4 Replies)
Discussion started by: tonyt
4 Replies
Login or Register to Ask a Question