View Full Version : How to output the cgi "response" to frame?
Elmore
08-19-2003, 08:25 AM
Hi!
Does anyone know how to output a cgi "response" back to frame?
I'm planning a site that uses frames and inside the main frame is a cgi script (account manager lite) when i use the account registeration form and sent it... then the "response" displays
in a full window (not inside the frame)
I'd like to know how to (or more like "what") to add into the script so it outputs the response in the main frame.
I guess i'll run into this kind of problem in the future also so i could really use this info!
Sorry about my english but i hope you'll understand what i'm talkin about here.
Thank you in advance!
MotherNatrsSon
08-19-2003, 08:29 AM
You have to link to the frame from the script. Probably for me it may be easier to see the script. Somethng like target="yourmainframename" ....
MNS
Elmore
08-19-2003, 10:23 AM
Hi!
Here is a part of the code. There are several places like this where i'd like it to output to the bodyframe.
( <FRAME NAME="body" TITLE="body" SRC="../html/body_muut_palvelut.html" )
here is the part of the script:
print "Content-type: text/html\n\n";
&header;
print<<EOF;
<CENTER><BR>
<TABLE BORDER="0" WIDTH="400"><TBODY><COLDEFS><COLDEF></COLDEFS><ROWS><TR><TD
COLSTART="1"><CENTER><P><B><FONT FACE="verdana, arial, helvetica"><FONT
COLOR="#FF0000">Account Manager</FONT> Status:<BR>Please Enter Your Last Name.</FONT></B></P></CENTER>
<P><FONT SIZE="-1" COLOR="$fontcolor" FACE="verdana, arial, helvetica">Please don't forget to enter <B>your last name</B> in our service request form.</FONT></P>
<P><FONT SIZE="-1" COLOR="$fontcolor" FACE="verdana, arial, helvetica">If you need further
assistance, please contact <A HREF="mailto:$orgmail">$orgname Support</A>.</FONT></P>
<CENTER><TABLE BORDER="0" WIDTH="400"><TBODY><COLDEFS><COLDEF></COLDEFS><ROWS><TR
><TD COLSTART="1"><HR SIZE="1">
<CENTER><FONT SIZE="-2" FACE="verdana, arial, helvetica">$orgname
maintained with <B><A HREF="http://cgi.elitehost.com/">Account Manager $version</A></B></FONT>
</CENTER></TD></TR></ROWS></TBODY></TABLE></CENTER></TD></TR></ROWS></TBODY></TABLE></CENTER>
EOF
&footer;
exit;
Thanks in advance!
Have you tried target="body" or target="_self"
ACJavascript
08-20-2003, 03:18 PM
So your trying to send the info to a frame or once the script is done it sends the info to a specific frame.
if its the first then when you link to the script use target.
<a href="Script.cgi" target="NameOfFrame">
If your trying to actualy do it from the script.
Then I suggest useing a meta refresh.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.