Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Perl + Frames + JavaScript

by tachyon (Chancellor)
on Jan 05, 2003 at 12:27 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://224404]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (5)
As of 2024-03-28 16:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found