| Author | Topic: HOWTO: Discard all HTML output without calling html3:Header() |
---|
| Thomas Braun
| HOWTO: Discard all HTML output without calling html3:Header()
on Tue, 08 May 2007 11:48:46 +0200Hello,
according to the WAA docs, this is what :header() does:
> This marks the begin of information sent to the Web browser. If the
> method is called a second time, all previous HTML output is discarded
> and a new HTML page definition starts.
Because I completely replaced the header method in my own derived html3
class, it was not possible to call original one, so I was looking for an
alternative way of getting rid of all previous HTML output...
By taking a closer look at waa1user.dll with a hex editor, I found a
undocumented method :resetchache(), which seems to do exactly what I need.
I thought this might be quite useful for others here as well.
regards
Thomas |
| Phil Ide
| Re: HOWTO: Discard all HTML output without calling html3:Header()
on Tue, 08 May 2007 23:24:08 +0100Thomas,
> according to the WAA docs, this is what :header() does:
>
>> This marks the begin of information sent to the Web browser. If the
>> method is called a second time, all previous HTML output is discarded
>> and a new HTML page definition starts.
>
> Because I completely replaced the header method in my own derived html3
> class, it was not possible to call original one, so I was looking for an
> alternative way of getting rid of all previous HTML output...
>
> By taking a closer look at waa1user.dll with a hex editor, I found a
> undocumented method :resetchache(), which seems to do exactly what I need.
>
> I thought this might be quite useful for others here as well.
Thank you, yes that's the one you need. In fact, this function should be
documented, otherwise it is impossible for overloaded html3 classes to
emulate present behaviour (except by using undocumented functions).
Regards,
Phil Ide
---------------------
www.xbhcl.com
www.pbih.eu
www.idep.org.uk/xbase
---------------------
Boy, that's bad!! |
| Olaf870 | Re: HOWTO: Discard all HTML output without calling html3:Header()
on Thu, 24 May 2007 17:58:10 +0200Thomas,
how do put all the values from the oHTML3-object to yout one derived class?
And where is the sence of this solution. In all cases it is "extrawork" for
the server.
regards
Olaf870
"Thomas Braun" <spam@software-braun.de> schrieb im Newsbeitrag
news:fmqot344qui6$.1aexkzbb78s93.dlg@40tude.net...
>
> Hello,
>
> according to the WAA docs, this is what :header() does:
>
>> This marks the begin of information sent to the Web browser. If the
>> method is called a second time, all previous HTML output is discarded
>> and a new HTML page definition starts.
>
> Because I completely replaced the header method in my own derived html3
> class, it was not possible to call original one, so I was looking for an
> alternative way of getting rid of all previous HTML output...
>
> By taking a closer look at waa1user.dll with a hex editor, I found a
> undocumented method :resetchache(), which seems to do exactly what I need.
>
> I thought this might be quite useful for others here as well.
>
> regards
> Thomas |
| Thomas Braun
| Re: HOWTO: Discard all HTML output without calling html3:Header()
on Fri, 25 May 2007 12:30:03 +0200Olaf870 wrote:
> Thomas,
> how do put all the values from the oHTML3-object to yout one derived class?
> And where is the sence of this solution. In all cases it is "extrawork" for
> the server.
I have created my own HTML3 class because I wanted to use the same methods,
but needed different functionality (for example, to get rid of the
graphical "Alaska-Footer"...) - plus I added a lot of new methods like
:DateSLE(), which creates a date entry field with a jscript calendar
attached to it.
To use the derived class, just add the WAA_HTML3CLASS variable to the
request string, telling the server to use the derived class instead:
http://localhost/cgi-bin/waa1gate.exe?WAA_PACKAGE=test&WAA_FORM=form1&WAA_HTML3CLASS=ShopHtml&...additional
variables.
Thomas |
| Olaf870 | Re: HOWTO: Discard all HTML output without calling html3:Header()
on Fri, 25 May 2007 14:37:34 +0200Thomas,
it seems, that my documetation of waa is not complete. I did not knew about
the option to change the class.
Thanks.
regards
Olaf870 |
| Thomas Braun
| Re: HOWTO: Discard all HTML output without calling html3:Header()
on Wed, 30 May 2007 11:47:30 +0200Olaf870 wrote:
> it seems, that my documetation of waa is not complete. I did not knew about
> the option to change the class.
Well, it is documented (WAA Reference -> User-defined HTML3 classes), but
it is not very obvious what can be done with this as there is no
sample...
Thomas |