It is tedious to merge HTML file into Web application, especially for the large HTML files with small HTML FORM associated to it. In such a HTML files, most portion of the file is HTML Headers, JavaScript, links, images, etc. These are static portion of a HTML file, they never change from time to time.
Here is an example: In the page HtmlSection, the HTML FORM is only 60% of the whole file, the others are header, JavaScript, images, links, and footer. For this file, the Web application only needs to deal with FORM if there are any fields need pre-inserted data.
WebRainbow has a special mechanism to handle such a case. It provides a dedicated function
to allow Web application to send several partial HTML files for creating the whole page. You can use this function along with CPrint to glue several static and/or dynamic pieces together to create the whole page on the fly.
Let's look at the demo, which is same as previous demo except the page layout and survey FORM are based on the page HtmlSection.
This demo includes several static pieces:
and one dynamic piece
The HtmlSection.bas (or HtmlSection4.bas) calls SendHtmlFile several times to merge the static sections into the page.
To try this demo, follow the steps list bellow:
Good luck!
For the latest information on WebRainbow, please see:
| http://www.dmfsys.com/wrainbow/ |
For questions / comments please email to:
| support@dmfsys.com |
Last modified on March 2, 2005