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: Advanced:
Perl and Frame

 



stanley
Novice

Jul 14, 2000, 10:00 PM

Post #1 of 5 (1175 views)
Perl and Frame Can't Post

I have a search box in top frame, and I need the search results to appear in both top and bottom frame. How do I do it?

Thanks.


Kanji
User / Moderator

Jul 16, 2000, 4:22 PM

Post #2 of 5 (1175 views)
Re: Perl and Frame [In reply to] Can't Post

Use TARGET="frame_name" in your <a href="..."> or <form> tag.

Alternately, if you use CGI.pm, you can also do print start_html( -target => 'frame_name' );.


stanley
Novice

Jul 16, 2000, 8:32 PM

Post #3 of 5 (1175 views)
Re: Perl and Frame [In reply to] Can't Post

Thanks for your help, but it only appear in one of the two frames, iis that possible to return the results in both frames?


rGeoffrey
User

Jul 16, 2000, 8:59 PM

Post #4 of 5 (1175 views)
Re: Perl and Frame [In reply to] Can't Post

If you want to change both frames at the same time, you can have your link actually redraw the whole frameset...

<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>


<html>
<head><title>Your Page Title</title></head>
<frameset name="hints" rows="*,60" >
<frame src="thescript.pl" name="top">
<frame src="thescript.pl" name="bottom">
</frameset>
</html>
</pre><HR></BLOCKQUOTE>

And then let thescript.pl fill in both frames at the same time.

If you do this, then the script will have to run twice to get the output for the two frames. If the script runs quick, that might be acceptable.

If the script will be expensive to run, you might want to change it to call the script once, which will put your data in a temporary file, and then print the frameset to call that file twice.


ominuswife
Deleted

Dec 1, 2000, 9:56 AM

Post #5 of 5 (1175 views)
Re: Perl and Frame [In reply to] Can't Post

Regarding the frameset HTML that is listed, how do you get this to "execute" rather than print from a Perl program? I need to actually execute a .HTML page so the frameset
will display while passing the form variables. You can't POST to an HTML page. I'm running under Apache.
Thanks.

[This message has been edited by ominuswife (edited 12-01-2000).]

 
 


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

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