My embedded server allows SSI of cgi via the following method:
<!--#exec cgi="function.fn 1"-->
Where "function" is the name of the C function and 1 is parameter passed to that function in C. However I want the following to work.
<SCRIPT LANGUAGE="JavaScript">
var passString="1";
</SCRIPT>
<!--#exec cgi="function.fn "+passString-->
Unfortunately this does not work because the cgi executes while the rest "passString" does not get passed. There has to be a way to call a variable CGI using #exec, not having to hardcode the string. Anyone ever seen or done this, much props if you help...
Thanks
<!--#exec cgi="function.fn 1"-->
Where "function" is the name of the C function and 1 is parameter passed to that function in C. However I want the following to work.
<SCRIPT LANGUAGE="JavaScript">
var passString="1";
</SCRIPT>
<!--#exec cgi="function.fn "+passString-->
Unfortunately this does not work because the cgi executes while the rest "passString" does not get passed. There has to be a way to call a variable CGI using #exec, not having to hardcode the string. Anyone ever seen or done this, much props if you help...
Thanks