View Complete Thread | FoxWeb Forum Home
Search:
Date:    Msg ID:   
From:    Thread:   
Subject:   
That's way works best for straight HTML.
 
If, however, your HTML file has code that calls a java servlet into action, then either the server.transfer or response.redirect works best. 
 
Here's an example:
sn=sess_name+".jsp"
fhandle=fopen(sn,1)
IF fhandle < 0 then
  outstring="Can't open file!"
  [bomb-out code]
  ENDIF
.
. write html/jsp stuff
.
fclose(fhandle)
link="http://localhost/"+sn
response.redirect(link)
If you're still stuck, give a code snippet example and I'll check back.
 
 
Sent by FoxWeb Support on 01/06/2004 04:36:33 PM:
All you need to do is send the HTML code directly to the browser, using Response.Write.  If the code is written to a file, you can read it with the FILETOSTR function:
 
... code that creates HTML file MyHTMLFile.htm ...
Response.Write(FILETOSTR(MyHTMLFile.htm))

FoxWeb Support Team
support@foxweb.com email

Sent by Jeff Grippe on 01/05/2004 09:25:37 AM:
Hello,
 
I am using XFRX which can take a Fox report and create an HTML document from the output of the report.
 
After creating an HTML document inside of a script how do transfer to the document?
 
I have tried Response.Redirect and Server.Transfer without success. I think I've got a syntax problem but I'm not sure what it is.
 
Thanks,
 
Jeff