javascript kludgesA couple of inelegant solutions that I picked up trying to create my own hit counter client side includeInsert this code whereever you need to include a repeated bit of text:
The included file must be valid Javascript. Just take your HTML and
wrap it inside document.write methods:
original HTML
converted to Javascript
Watch out for those quote marks! This trick can also be used to insert the output of CGI scripts, in case you have access to CGI but not to SSI. You just have to make the CGI script output Javascript as above. call a CGI script from JavascriptThis is often necessary if you need to pass variables from
Javascript to a CGI script. The following passes the
Last update: 2001-04-24 code main | fato profugus |