Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

A question about header()?

0 views
Skip to first unread message

John Kopf

unread,
Nov 7, 2009, 12:38:59 AM11/7/09
to
All of the examples I've seen use header to relad the current page or an
entirely new page.

Can it be used in a frame environment to cause a page to be loaded into
a different frame? If so, how do I specify the particular frame as well
as page?

(The particular application I have in mind has the user chase down a
tree of menus in one frame, and finally select a form into a
second frame, to be filled out; once that form is completed, I want to
revert to a prior menu is the chain, without reloading the site from
scratch.)

John Kopf

Dikkie Dik

unread,
Nov 7, 2009, 6:32:32 AM11/7/09
to
John Kopf wrote:
> All of the examples I've seen use header to reload the current page or an

> entirely new page.
>
> Can it be used in a frame environment to cause a page to be loaded into
> a different frame? If so, how do I specify the particular frame as well
> as page?

Not that I am aware of. When a redirect header gets interpreted by your
browser, it already knows which frame it was requested for. It would
open a nice can of security worms if that were possible.

> (The particular application I have in mind has the user chase down a
> tree of menus in one frame, and finally select a form into a second
> frame, to be filled out; once that form is completed, I want to revert
> to a prior menu is the chain, without reloading the site from scratch.)

Look at the HTML specs: the "form" element can have a "target" attribute.

C. (http://symcbean.blogspot.com/)

unread,
Nov 9, 2009, 6:44:38 AM11/9/09
to
On Nov 7, 5:38 am, John Kopf <ko...@worldnet.att.net> wrote:
> All of the examples I've seen use header to relad the current page or an
> entirely new page.
>
> Can it be used in a frame environment to cause a page to be loaded into
> a different frame?  If so, how do I specify the particular frame as well
> as page?
>

The short answer is no.

I suspect you'll need to implement this in Javascript.

But do have a look at phplm.

C.

0 new messages