Title: RE: FORM login with FRAMES

theo,

The issue of getting the login page to appear in the top frame only is nothing to do with orion.
I had the same problem. and the only way to get around it was to put the following javascript code in the login page itself.

<script language=javascript>
if (parent.frames[1])
  parent.location.href = self.location.href;
</script>

[This code is from page 170 of the Wrox book, Professional Javascript. I know very little javascript myself as I avoid it like the plague]

You should put this in the <head> tag of any jsp that should only ever appear by itself.
This would usually apply to the login page and the main FrameSet page itself (otherwise you get those zany concentric frames!)

This works in IE5. I haven't checked it against anything else, but the point is that it is easier to put the code in the page being called than try and manage all the frame references in each and every other jsp that might call it, including servlets in an MVC implementation.

Hope that helps,

Grant Doran
Principle Architect
iLaunch inc.
(02) 89257055
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>



-----Original Message-----
From: theo van niekerk [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 05 December, 2000 1:45 AM
To: Orion-Interest
Subject: FORM login with FRAMES


Hi there

We would like to use FORM login/authentication with our web app that uses
FRAMES and JavaScript extensively - example one frame will call a
dynamically generated FRAMESET that loads different documents depending on
the situation, while Onload events reloads contents of other frames.

Out problem is when the session expires or for some other reason the webapp
wants to re-authenticate the browsing user. So what happens.. a login page
gets loaded into each and every frame window.

We've tried redirects, forwards and some javascript. But it seems like orion
likes to keep everything to only one frameless page.

What can we do?

Kind regards

Theo van Niekerk



Reply via email to