[mod_python] Programmatic Redirection in Frames

Martijn Moeling martijn at xs4us.nu
Mon Nov 27 10:45:09 EST 2006


Suren,

 

As far as I am aware this is not possible. Apache has absolutely no idea
about frames.

That is why I stopped using frames years ago.

 

On my current project I use absolute positioning and I am sending forms
using the XMLHTTPRequest object.

By doing so, the return from the server can be set to any object in
javascript, Google for XMLHTTPrequest, and do not get fooled by the XML
thingy in the name, you can send plain text or any format you like. Be
aware that if you want to be browser independent you run into trouble if
you use the <input=file...>.

 

Forms can have a target= too!!! Maybe you can alter all references to
the login page with a targe=_top.

 

I suggest you stop using frames

 

Martijn

 

 

________________________________

Van: mod_python-bounces at modpython.org
[mailto:mod_python-bounces at modpython.org] Namens Surendra Lingareddy
Verzonden: Monday, November 27, 2006 4:03 PM
Aan: mod_python at modpython.org
Onderwerp: [mod_python] Programmatic Redirection in Frames

 

I am using util.redirect() to redirect to a particular page when a user
takes an action. The action is submitted via a form and read the action
via the req.form.getfirst() thingy. If the session is ended, my
redirection to the login page does not take me to the top-level frame,
instead it puts it into a child frame. Is there a way where I can
specify programmatically to be redirected to the top level frame?

 

On a href call, it is easy as it takes target=_top but can I specify it
somehow on a req object?

 

Thanks,

Suren 

CONFIDENTIAL: This email, including its contents and attachments, if
any, are confidential. If the reader of this e-mail is not an intended
recipient, you have received this e-mail in error and any review,
dissemination, distribution or copying is strictly prohibited. If you
have received this e-mail in error, please notify the sender immediately
by return e-mail at [emailaddress at crossroads.com] and permanently delete
the copy you received. Copyright and other intellectual property rights
in its contents are the sole property of Crossroads Systems, Inc. Email
transmission cannot be guaranteed to be secure or error-free. The sender
therefore does not accept liability for any errors or omissions in the
contents of the message which arise as a result of email transmission.
Although we routinely screen for viruses, addressees should check this
email and any attachments for viruses. We make no representation or
warranty as to the absence of viruses in this email or any attachments. 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20061127/cd737daa/attachment.html


More information about the Mod_python mailing list