Hi,
I have a webpage that is divided into 3 frames, 1st frame contains tables generated from cgi script, each row in the table has checkboxes.
The 2nd frame contains various options and a submit button. The 3rd frame will contain the output of the submit.
First i tried to have the options and submit in the same frame as the tables, and when i pressed submit everything worked i got he output. Once i moved options and the submit button to frame 2, it does not work, when i press submit it just uses the information from frame 2. How do i make it use information from frame 1. I have looked at some of the other posts and followed the instructions on using java script for the submit button but nothing happens.
Frame1 name -> main : contains tables with checkboxes
Frame2 name ->options : contains a submit button with options which apply to the table in frame1
Frame3 name ->output : Should get the output of the submit
**************************
**********
*******
This is the code for frame2 which has the submit button and options.
#!/usr/local/bin/perl
use CGI;
$q = new CGI;
print "Content-type:text/html\n\
n";
print <<END_OF_SUMMARY;
<TITLE>SUMMARY</TITLE>
<p>
<FORM>
<INPUT TYPE="button" VALUE="submit" onsubmit="parent.main.docu
ment.OnlyF
orm.submit
()">
</FORM>
<p>
............options listed here
END_OF_SUMMARY
print $q->end_html();
**************************
**********
**********
**********
********
This is part of the code for frame1 which generates tables with checkbox.
some crap
print <<END_OF_SUMMARY;
<TITLE>LSF SUMMARY</TITLE>
<H1 ALIGN="CENTER">LSF SUMMARY</H1>
$user
<p>
<FORM NAME="OnlyForm">
Date/Time: $time
<FORM METHOD=POST ACTION="test3.pl" TARGET="results">
<p>
<INPUT TYPE=submit value="Submit Command"> <INPUT TYPE=reset>
<p>
END_OF_SUMMARY
generate table/w checkbox code
print $q->end_html();
**************************
**********
**********
**********
**********
**********
***
When i click on the submit button located in frame2 nothing happens, am i doing something wrong here, also can i mix the options in frame2 with checkboxes located in frame1.
Thank you,
Venkata
Start Free Trial