[ back to toc ]

CGI and SSI

Date: 2002/06/03 13:12

Q:
Hi Peter,

Is it possible from a CGI script to determine whether the script was
called (via SSI) in a frameset or directly? I know it is possible to
determine that via Javascript, but I have never really thought about it
via CGI scripts in Perl...

/*NAME-DELETED*

A:
SSI is server side include that is called inside a HTML page by the
server. SSI usually generates an HTML page fragment and not the whole HTML
page.

If a frameset is composed using CGI the CGI generates a whole HTML page,
which is used in a frameset.

I am afraid that you mix up frameset and HTML page composed using SSI.

As SSI is not standard you should read the documentation of the web server
on the details if the web server gives any environment variable indicating
that the page is SSI or not.

Regards,
Peter

[ back to toc ]