ssi in popup window, please help!!!
I have a javascript, generated by my cgi, looks like this:
---[snip]---
$js_view = "
<script language=\"Javascript\">\n
function preview(post) {
var args = post.options[post.selectedIndex].value.split(\" - \");
var date = args[0];
var id = args[1];
win = window.open(\"$news_cgi?action=view&date=\" + date + \"&id=\" + id,
\"previewWin\", \"location=no, status=no, toolbar=no, width=550, height=300\");
win.focus();
Quote:
}
</script>";
------
(NOTE: $news_cgi contains the name of my cgi in my cgi-bin directory)
And the popup comes up which has the <!--#include virtual="/cgi-bin/test.cgi" --> in it but it doesnt replace it with the
output from from my ssi-called test.cgi, which does this:
---[Snip]---
print "<b>TEST</b>";
------
When I look at the source for the popup page I see that its writen <!--#include virtual="/cgi-bin/test.cgi" --> in there but
it didnt replace it. This works if I put the statement in a .shtml file. How can I use <!--#include
virtual="/cgi-bin/test.cgi" --> ssi calls in a popup window writen that gets writen by a cgi script (window pops up with its
url pointing to a script that outputs html with an ssi call).
I hope I'm not asking too much. Thanks sooo much for any help!!!