View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
Well, I finally solved my problem. I tested my script in a NT server running IIS and it worked.
So I find out that the redirect method does not work with Personal Web Server 1.0. (the one I had running in my personal computer)
I downloaded PWS 4.0 and I had my problem solved.
 
Anyway, I´d like to thank you for answering my questions.
 
Mariela.
Sent by FoxWeb Support on 04/05/2002 11:55:08 AM:
Please create a simple script, which only contains the Response.Redirect call and verify that it fails:
 
<%Response.redirect("http://localhost/website/page1.html")%>
 
Note that above redirect will only work if your browser is on the same computer as the Web server.  You will need to replace "localhost" with the correct server name if you want the redirect to work for remote computers.
 
If you keep having trouble, place the script on a server that is publicly accessible and send us the URL, so that we can test it ourselves.
 
FoxWeb Support Team
support@foxweb.com
Sent by Mariela on 04/05/2002 07:25:38 AM:
No, that address does not match the one I´m redirecting. I have a first page with an html form, when the user submits, it calls a FoxWeb script.

So the browser´s address field shows the address of the script. At some point of that script I try to redirect to another page using the Response.redirect method. That address is never shown in the address field, and I get the "Can´t show the page" browser´s message instead (actually the spanish version of that message).
 
Mariela.
 
Sent by FoxWeb Support on 04/03/2002 04:46:42 PM:
The redirect method should actually cause the browser to request the URL in question, so the URL should show up in the browser's address field.  Does that URL match the one that works?

FoxWeb Support Team
support@foxweb.com

Sent by Mariela on 04/03/2002 11:12:07 AM:
I have a problem when using the redirect method on response object. The browser cant´find the page where I´m redirecting. I´m testing it in a local host running PWS. The line I wrote in my program is:
    Response.redirect("http://localhost/website/page1.html")
And I´m sure the URL exists, because if I type it on the browser it shows the page.  What am I doing wrong?
 
Mariela.