Okay...Here is what I've come up....Using a variation of the codes Jerry (Widgetz) provided and the codes I have for my random quote script (still needs to be cleaned up to take out the hit count for the keywords stored in the keywords.txt file via the Keyword Logger Mod), I came up with a cgi script.
Then I put the SSI call in the javascript:
Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
var ms = navigator.appVersion.indexOf("MSIE");
var ver = parseInt(navigator.appVersion.substring(ms+5, ms+6))
var text = <!--#exec cgi="/cgibin/misc/random2.cgi"-->
function scroll () {
if (document.topsearch) {
document.topsearch.query.value = text;
}
setTimeout ("scroll()", 3500);
}
function OpenPopup(strFileName) {
popupWnd=window.open(strFileName, "PopupWindow", "");
}
// -->
</SCRIPT>
Notice that I took out all the count stuff because it was causing a bunch of Javascript errors.
When I rebuilt the index page, I got the following Javascript Error:
participate observation undefined Then when I click on the small
ok button in the pop-up window,
undefined pulls up in the search box.
So, it looks like the keywords are being pulled, however, the javascript does not know how to handle the keywords and therefore they are undefined.
Any ideas?
Thanks.
Regards,
------------------
Eliot Lee Anthro TECH,L.L.C
www.anthrotech.com ----------------------