Hi All,
OK, I have most of my problems worked out. I'm using the following SSI to put the search results on an SHTML page that is managed by a CMS:
But I need to get the search parameters from the URL. So, I'm using javascript:
<script language="javascript">
function getURLParam(){
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("?") > -1 ){
var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase() ;
strReturn = strQueryString;
//alert(strReturn);
}
return strReturn;
}
</script>
I've checked strReturn and it is set to ?zoom_query=MySearchString, but I am getting a Failed to execute CGI : Win32 Error Code = 2 error
If I take out the javascript and put the actual query string value into the SSI (just for a test):
everything works, so, it something to do with the way the SSI / javascript is being executed.
Any ideas?
TIA
Lee
OK, I have most of my problems worked out. I'm using the following SSI to put the search results on an SHTML page that is managed by a CMS:
But I need to get the search parameters from the URL. So, I'm using javascript:
<script language="javascript">
function getURLParam(){
var strReturn = "";
var strHref = window.location.href;
if ( strHref.indexOf("?") > -1 ){
var strQueryString = strHref.substr(strHref.indexOf("?")).toLowerCase() ;
strReturn = strQueryString;
//alert(strReturn);
}
return strReturn;
}
</script>
I've checked strReturn and it is set to ?zoom_query=MySearchString, but I am getting a Failed to execute CGI : Win32 Error Code = 2 error
If I take out the javascript and put the actual query string value into the SSI (just for a test):
everything works, so, it something to do with the way the SSI / javascript is being executed.
Any ideas?
TIA
Lee
Comment