1.

Is There Any Way To Dynamically Merge Other Html Scripts Into A Given Html?

Answer»

In a SENSE you are requesting something like a /copy pre-compiler function. This could be extremely useful when you have many html pages sharing some pieces of html/javascript. A /copy-like function would allow to keep these common pieces external, and to include them wherever needed, thus reducing both html scripts development time and maintenance.

What, at least in my opinion, would be needed is some include function to be interpreted / executed from the client browser at page load time. Unluckily, nothing like this -- as far as I know -- is available. This means that any include function must be carried over from the server site.

There are two ways you can obtain this dynamic merging:

  1. using subprocedure gethtmlifsmult in your CGI. 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. 
  2. including external JavaScript code
  3. using Server Side Includes.

In a sense you are requesting something like a /copy pre-compiler function. This could be extremely useful when you have many html pages sharing some pieces of html/javascript. A /copy-like function would allow to keep these common pieces external, and to include them wherever needed, thus reducing both html scripts development time and maintenance.

What, at least in my opinion, would be needed is some include function to be interpreted / executed from the client browser at page load time. Unluckily, nothing like this -- as far as I know -- is available. This means that any include function must be carried over from the server site.

There are two ways you can obtain this dynamic merging:



Discussion

No Comment Found