Author | Topic: Re: go around oHTML-object | |
---|---|---|
Morten B Kjetland | Re: go around oHTML-object on Fri, 04 Feb 2000 15:31:02 +0100 I like the HTML object, specialy the GetVar method. Here is my problem: If i write this in a waa-app: oHTML:put('<html><body>hello world</body></html>') This is what is send to the browser: -------------------------------------- Content-type: text/html <html><body>hello world</body></html> ------------------------------------- I need to start transmitting not after "content-type.....", but before.... In other words: I would personaly put the "content-type"-stuff in the buffer you talks about... -morten ----- Original Message ----- From: Hannes Ziegler [ALASKA Software] <hz@de.alaska-software.com> Newsgroups: alaska-software.news.waa Sent: Friday, February 04, 2000 2:18 PM Subject: Re: go around oHTML-object > Morten B Kjetland wrote: > > > is it posible to generate html-code from a waa-app without useing the > > put-method in the oHTML object? > > > > If you write a plain cgi-app in C++, all you have to do is to print to > > st_out. Nothing is printed when I try this in waa: > > FWrite(FH_STDOUT, cString) > > > > Is it posible to use the internal filehandle in the oHTML-object? > > No, this is not possible. The HTML object collects HTML output in a > buffer using :put() and flushes the entire buffer to the gateway when > you RETURN .T. from your PRG function. > > BTW, why don't you like the HTML object? > > Regards, > Hannes Ziegler > [ALASKA Software] |