Well Jeb,

(If I understand your question correctly...)

You can accomplish this by imbedding JavaScript in your query & response
HTML.
You will need to have named FORMs in each of your FRAMEs to use the
following JavaScript examples:

Say you have a text object in your query frame.
You can update the text object in your query frame from your response
frame by using the following JavaScript code:
      parent.query.document.form_name.text_object_name.value = "updated
text";
or you could append to the query's text object with the following
JavaScript code:
      parent.query.document.form_name.text_object_name.value += "append
text";

Please note that in the above examples "form_name" should be replaced
with the actual FORM NAME <FORM NAME=? ...> in your HTML &
"text_object_name" should be replaced with the actual NAME given to the
<INPUT TYPE=TEXT NAME=? ...> object.

You can also obtain similar results through hidden objects and forcing a
submit on the frame.  This would work very similarly to the above
examples...
Example: In your FORM on your query frame you would include a hidden
object <INPUT TYPE=HIDDEN NAME=h_text>
You could then access this hidden object from the response frame through
the following JavaScript code:
      parent.query.document.form_name.h_text.value = "updated text";
Then cause the FORM on your query frame submit and refresh according to
the value in your hidden "h_text" object:
      parent.query.document.form_name.submit();

Hope this helps...

Regards,
Dave

-----Original Message-----
From: jaouad.jeb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 6:13 PM
To: perl-unix-users
Subject: [Perl-unix-users] Frameset


Hi Folks,

I am using the Frame.cgi script from activeperl, here a copy of it:

sub print_frameset {
    $script_name = $query->script_name;
    print <<EOF;
<html><head><title>$TITLE</title></head>
<frameset cols="40,60" frameborder="0">
<frame src="$script_name/query" name="query">
<frame src="$script_name/response" name="response">
</frameset>
EOF
    ;
    exit 0;
}


The problem I have is the following:

I do want to append result to the RESPONSE frame and not only show the
last 
result submited, how can I do that? I do have two different submition 
Buttons in the query part one to submit just the last Calculation done
and 
the second one to ADD the result to the precious one, can some one help
in 
this topic? if you do have other alternative please share with me, I am
new 
to perl and programming.

thanks

jeb

_________________________________________________________________
Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp

_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users


_______________________________________________
Perl-Unix-Users mailing list. To unsubscribe go to 
http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users

Reply via email to