Categories > TinyButStrong general >

Possible 'onload' bug?

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Stefan
Date: 2006-12-01
Time: 10:37

Possible 'onload' bug?

When I want to include the footer from inside a comment, the whole HTML text is included, not only the body part. The documentation suggests that by default only the body part will be there.
<!-- FOOTER [onload;file='footer.html';comm] -->

When I add a separate command, it works as expected, that is, only the part between the body tags is there.
<!-- FOOTER [onload;file='footer.html';getbody=body;comm] -->

Only when looking into the source, this became noticeable, since browsers ignore additional head and body tags (but do display the content between the additional body tag).
By: sheepy
Date: 2006-12-01
Time: 11:31

Re: Possible 'onload' bug?

Let me see...
getbody      To be used with parameter file or script. Indicates that not all the file contents is loaded but only the body part delimited with tags <body> and </body>.
...
Versioning: parameter getbody is supported since TBS version 3.0. In previous versions, it was automatically processed when using parameter file. Now it becomes explicit.
The manual looks clear to me?