I did not realize that you were using FoxWeb 2. For this version the command is a little different:
The Response.Redirect method does the same thing, but you should never use the Response, Session and Auth objects in applications that write directly to html_out. The recommended solution would be to re-write your application so that it utilizes the FoxWeb 2 API, but I understand how this may not be realistic.
FoxWeb Support Team support@foxweb.com email |
Sent by tb on 05/31/2005 01:08:27 PM:
I am running v2.6. I tried both your examples but no redirection took place, just blank page. I did stumble on Response.Redirect command and
Sent by FoxWeb Support on 05/31/2005 10:32:01 AM:
Are you trying to create a link in a FoxWeb 1.29 script? If yes, try the following:
if begd > endda theerror='Check the beg date and end date for accuracy' html_out = html_out+ '<a href="https://iridium/lmca/error.htm">Error!</a>' retu endi |
If on the other hand you are trying to redirect the user to another page, you can use the following:
if begd > endda theerror='Check the beg date and end date for accuracy' html_out = 'Location: https://iridium/lmca/error.htm'+chr(10)+chr(10)
retu endi |
FoxWeb Support Team support@foxweb.com email |
Sent by TB on 05/31/2005 06:40:59 AM:
A bit rusty here, but how do I point to another web site from within a foxweb prg? I no longer wish to use the line that is commented out. For example:
if begd > endda
theerror='Check the beg date and end date for accuracy'
* html_out = html_out+mergetxt(readfile('anerror.htm'))
html_out = html_out+ '<a href=
https://iridium/lmca/error.htm' retu
endi
Obviously this syntax does not work, any ideas?