1.

Is It Possible, In The Same Cgi, To Run More Than One Gethtml Or Gethtmlifs?

Answer»

Yes. There are several ways you can do this.

Using multiple gethtml or gethtmlifs

However you should be aware of the following:

  1. Each time a different external HTML is read, the previous external HTML is discarded. THEREFORE sections of a given HTML are no longer available when a subsequent HTML has been LOADED.
  2. CGI performance will not be as good as with one HTML file USED over and over.

If you care, we have an EXAMPLE of this approach:

  • Run our example
  • Display the first external HTML used by our example
  • Display the second external HTML used by our example
  • Display the source of the CGI used in our example

Using gethtmlifsmult: This subprocedure allows to load in memory several external IFS files containing html code. This subprocedure is highly recommended whenever several CGI's share some HTML code. 

Using Server SIDE Includes: This allows to merge pieces of static HTML code into the HTML output buffer once it has already been sent from the CGI.

Yes. There are several ways you can do this.

Using multiple gethtml or gethtmlifs

However you should be aware of the following:

If you care, we have an example of this approach:

Using gethtmlifsmult: This subprocedure allows to load in memory several external IFS files containing html code. This subprocedure is highly recommended whenever several CGI's share some HTML code. 

Using Server Side Includes: This allows to merge pieces of static HTML code into the HTML output buffer once it has already been sent from the CGI.



Discussion

No Comment Found