Return-Path: Delivered-To: apmail-perl-embperl-archive@perl.apache.org Received: (qmail 23894 invoked by uid 500); 3 Oct 2002 06:53:13 -0000 Mailing-List: contact embperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Delivered-To: mailing list embperl@perl.apache.org Received: (qmail 23878 invoked from network); 3 Oct 2002 06:53:13 -0000 Date: Thu, 3 Oct 2002 08:53:19 +0200 From: Andre Landwehr To: embperl@perl.apache.org Subject: Re: Targeting with location Message-ID: <20021003065319.GA1482@twintower> Reply-To: andre.landwehr@gmx.net Mail-Followup-To: Andre Landwehr , embperl@perl.apache.org References: <002601c26a75$26e3b3d0$210111ac@webdev> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <002601c26a75$26e3b3d0$210111ac@webdev> User-Agent: Mutt/1.4i X-Operating-System: Linux twintower 2.4.19 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Wed, Oct 02, 2002 at 05:38:06PM -0700, Brent Hardinge wrote: > [- > $http_headers_out{'Location'} = $redirectionvar ; > -] > > that works fine, but I need to be able to target "_top" or some other > frame. Is there a way? what is the syntax? With http_headers_out you can only modify headers of the http protocol, which essentially is a transport protocol and not a browser remote-control protocol ;-) Unless I overlooked sth. in the http short reference I don't think it's possible to do that with http headers. I'm afraid javascript's window.open() will be the method of choice... Maybe you can simulate the behaviour using http_headers_out to call a dummy page, which right in the tag has a onLoad javascript command, which then does a window.open("the_url_you_really_want") and history.back() to restore the old page. But that is definitely very very bad coding style ;-) Andre -- "The inside of a computer is as dumb as hell, but it goes like mad!" (Physicist Richard Feynman) --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org For additional commands, e-mail: embperl-help@perl.apache.org