One other solution is to target every request to the top frame and rewrite
your entire frameset on every page load. In fact, this is the solution
that most people who are stuck with using frames use.
You don't need to resort to Javascript. You can use the deprecated <base>
tag to set the default target like...
<base target="_top">
Set that inside the <head> of each of your frames.
Also, at the top of any page that contains a frameset, you should use:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
and any page that is the frame of one of these pages should have the dtd:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
Those two doctypes are the only ones which allow the "target" attribute and
the frameset dtd is the only one that defines the <frameset> element to
replace the <body> element (at least in the 4.0.1 dtds).
So, when you click on any link for submit any form, the request will be
sent from the top window so any response will be sent back to the top
window. The only thing you have to remember is now you probably have to
figure out some caching solution for pages since there will end up being as
many requests per frameset load as there are frames + 1. So, if you have 3
frames, each page load will be 4 requests. One for the parent frameset,
and one for each frame once that parent frameset loads.
Also read:
http://jonasj.dk/frames.html
Jake
At 12:45 PM 8/14/2002 +0200, you wrote:
>Ok!
>Thanks a lot!
>
>I forward to a page which displays an message and a submit button which
>links to my login-controller with target="_top"
>
>I hope the customer is happy.
>
> > -----Ursprüngliche Nachricht-----
> > Von: Ralph Einfeldt
> [<mailto:ralph.einfeldt@uptime-isc.de>mailto:ralph.einfeldt@uptime-isc.de]
> > Gesendet: Mittwoch, 14. August 2002 12:29
> > An: Tomcat Users List
> > Betreff: AW: forward to TOP-Frame
> >
> >
> > Then you just can't do it.
> >
> > This is a client site problem.
> > Tomcat (as any web server) doesn't know anything
> > about targets (It's not part of the HTTP protocoll).
> > So every response is send back to the frame that
> > send the request. The !ONLY! way to change that, is
> > to use javascript.
> >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Harry Knörrer
> [<mailto:hknoerrer@avs-vvs.de>mailto:hknoerrer@avs-vvs.de]
> > > Gesendet: Mittwoch, 14. August 2002 11:49
> > > An: 'Tomcat Users List'
> > > Betreff: AW: forward to TOP-Frame
> > >
> > >
> > > And javascript isn't allowed
> > >
> >
> > --
> > To unsubscribe, e-mail:
> >
> <<mailto:tomcat-user-unsubscribe@jakarta.apache.org>mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>
> > For additional commands, e-mail:
> >
> <<mailto:tomcat-user-help@jakarta.apache.org>mailto:tomcat-user-help@jakarta.apache.org>
>
> >
>
>--
>To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|