[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mason
Subject:    [Mason] Redirect from within an IFRAME
From:       wsheldah () lexmark ! com
Date:       2001-08-31 21:13:31
[Download RAW message or body]



First the question, then the background:  How can a component that's inside an
IFRAME redirect  or change the location of the parent, and not just what's
displayed in the frame?

Background:    In response to a client's UI request, I have a form embedded in
an IFRAME element.  Following my general form approach, the form's action points
to a component with no display.  It's init section process the form, saves to
the database, then calls  a redirect component that does a generic redirect to
essentially the same page with slightly different parameters.  What happens is
that the parent page gets displayed inside the IFRAME, and has another IFRAME
inside it.

I do have a kludgy workaround: a line of javascript in the parent's header that
breaks it out of a frame if it's in one.  Problem is that's two trips to the
server, and it looks a little jerky.  There's gotta be a better way.

Thanks in advance,

Wes Sheldahl



_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mason-users

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic