Netscape 4.7x Redirect problem
Hello All... Trying to use a RESPONSE.redirect('menu') on an intermediate page for handling logins. After userid and password and submit, the loginCheck page does its thing. If really a valid user, the code above redirects to the main menu page. Works great in IE but I get "Document contains no data" for Netscape. Has to be the redirect because if I comment it out, the other parts of the page display correctly. Any ideas?? Thanks Allen
On Wed, Aug 29, 2001 at 01:26:21PM -0400, Schmidt, Allen J. wrote:
Trying to use a RESPONSE.redirect('menu') on an intermediate page for handling logins.
Works great in IE but I get "Document contains no data" for Netscape.
RESPONSE.redirect itself works fine with Netscape; I've got a really hairy redirect process, detailed at http://groups.yahoo.com/group/zope/message/69614 The problem you've run into may indicate that Netscape thinks you're redirecting it to the same page it just came from, and is trying to forestall an infinite loop. Check it with Mozilla and see if you get an error about an infinite redirection loop. What you can do about it, I don't know yet. I know that Netscape certainly has no trouble with refresh tags in the head of an html document, nor with reloading the same page via a link on the page. I expect there may be an http header missing that tells Netscape that this is dynamic content, and it shouldn't worry about possible infinite loops in redirection. Of course, if this helps you solve the problem, let me know. I'd really love to be able to completely use my one troublesome Zope app from Netscape and Mozilla. -- Mike Renfro / R&D Engineer, Center for Manufacturing Research, 931 372-3601 / Tennessee Technological University -- renfro@tntech.edu
Don't ask me why but people in the community keep repeating that you should pass a full url to the redirect() method. Do instead: RESPONSE.redirect('http://www.guugle.com/Allen/menu') ...or... RESPONSE.redirect(menu.absolute_url()) Again, don't ask me why but adding lock=1 as a parameter to the redirect() has helped me once or twice. I don't know how it works but it makes sure that after a success full redirect the addressbar shows what you expect it to show. Peter
Hello All...
Trying to use a RESPONSE.redirect('menu') on an intermediate page for handling logins. After userid and password and submit, the loginCheck page does its thing. If really a valid user, the code above redirects to the main menu page.
Works great in IE but I get "Document contains no data" for Netscape.
Has to be the redirect because if I comment it out, the other parts of the page display correctly.
Any ideas??
Thanks
Allen
_______________________________________________ Zope maillist - Zope@zope.org http://lists.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope-dev )
Peter Bengtsson wrote:
Don't ask me why but people in the community keep repeating that you should pass a full url to the redirect() method. Do instead: RESPONSE.redirect('http://www.guugle.com/Allen/menu') ...or... RESPONSE.redirect(menu.absolute_url())
This is because HTTP specifies that Location must give an absolute URI (<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30>), and redirect uses a 302 response and the Location field.
Schmidt, Allen J. writes:
Trying to use a RESPONSE.redirect('menu') on an intermediate page for handling logins. After userid and password and submit, the loginCheck page does its thing. If really a valid user, the code above redirects to the main menu page.
Works great in IE but I get "Document contains no data" for Netscape.
Has to be the redirect because if I comment it out, the other parts of the page display correctly.
Any ideas?? I can assure you (as others already did) that Netscape 4.7 can redirect. I do it regularly without problems.
Thus, a case for "tcpwatch" or any other TCP-logger.... Dieter
participants (5)
-
Behrens Matt - Grand Rapids -
Dieter Maurer -
Mike Renfro -
Peter Bengtsson -
Schmidt, Allen J.