develooper Front page | perl.beginners | Postings from March 2002

Re: Updating multiple frames in one CGI processing cycle

From:
Carl Franks
Date:
March 28, 2002 00:56
Subject:
Re: Updating multiple frames in one CGI processing cycle
Message ID:
E16qVjj-0005pS-00@fisher.vip.uk.com
Ted

You could either send a new frameset page, which will load both new frames
you require, or you'll have to use a client side scripting language (i.e.
javascript)

Here's a link that shows one way to do it:
http://javascript.internet.com/navigation/change-2-frames.html

Carl

----------
>From: "Ted Markowitz" <cognosys@yahoo.com>
>To: <beginners-cgi@perl.org>
>Subject: Updating multiple frames in one CGI processing cycle
>Date: Wed, Mar 27, 2002, 8:04 pm
>
>
>BlankAs I understand it, because of the single-request/single-response nature
>of the HTTP protocol and the way frames are treated as individual, separate
>pages, that there's no way to get results from a form in one frame, process it
>with a CGI script and the output a new page to both that frame AND another
>frame during the same processing cycle? Is that so? In other words, what I'd
>like to do is be able to change a navigation bar in one frame and also update
>the "main" frame with a new page at the same time.
>
>An example: when logging in, I'd like to show a simple navbar in the left frame
>with just "Login" and "Help". Then based on successfully authenticating in the
>main frame using a form for username and password, I'd like to display a new
>page in that same main frame AND update the navbar in the left frame to add new
>command buttons available only to a logged-in user.
>
>Any suggestions or pointers to examples would be much appreciated. I've started
>to look at doing this via tables without frames, but using frames seems like it
>would be much cleaner in principle.
>
>Thanks.
>
>--ted





nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About