|
|
|
Print
version (in a new window)
Is it possible to show different fragments of an HTML-page,
depending upon the presence of WebWarper?
Yes.
WebWarper supports two special HTML-tags: <ww...> and <noww...>.
If the page is viewed WebWarper, then:
- All HTML-code between the tags <noww> and </noww>
is removed. (If there is no WebWarper, usual browser ignores these tags as
unknown.) In other words, HTML-code between <noww> and </noww>
tags is visible only if a page is viewed without WebWarper.
- If some HTML-code, placed into HTML-comment, is located
between <ww> and </ww> tags:
<ww><!-- my html --></ww>,
then this HTML-code is automatically "uncommented", i.e. the browser receives
the following code:
my html
In other words, "my html" code is visible only if a page is viewed via WebWarper.
- HTML-code between <noww GZipSupported> and </noww> tags
is removed only in a case, when WebWarper compressed this page by gzip.
It may be not so, if gzip compression is not supported due to some reasons.
See the question
"Does WebWarper really compress my traffic?" about this.
- Analogously, commented HTML-code between <ww GZipSupported> and </ww> tags
is "uncommented" only in a case, when WebWarper compressed this page by gzip.
To contents
|