Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Perl + Frames + JavaScript

by tachyon (Chancellor)
on Jan 05, 2003 at 12:27 UTC ( #224404=note: print w/replies, xml ) Need Help??


in reply to Perl + Frames + JavaScript

You don't need javascript to do this. A CGI can have its output targeted to a frame using the header you print like this:

use CGI; my $q = new CGI; print $q->header(-target=>'ResultsWindow'); # or roll your own header like this print "Window-Target: ResultsWindow Content-Type: text/html\n\n";

So all you need it a link to the script like

<a href="/cgi-bin/script.pl?target=SomeFrame&other=stuff">Click Here</ +a> # and in the script my $target = $q->param('target'); print $q->header(-target => $target );

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://224404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (6)
As of 2016-10-01 20:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (7 votes). Check out past polls.