I am in dire need of calling a CGI script (i.e. message.cgi) that resides in an executable sub-directory called /cgi-bin from my index.htm file. The challenge is that I need to call this script on the page load AND to pass it parameters that have to be extracted from the URL for the site.
For example:
1. A user has clicked on a link that looks like this
2. As the index.htm file for noworkzone.com loads, it needs to parse the source parameter value from the URL and call the message.cgi script WITH the 1201 parameter (the CGI script resides in the /cgi-bin subdirectory)
3. Once it has successfully called the CGI script, the page simply continues loading (the CGI script in question has no effect on the webpage, rather it just ads some statistics to a flat file).
Is this possible? Are there any problems with calling an executable during page load? Does the fact that the CGI script resides in a sub-directory present any problems?
Any and all tips are greatly appreciated... If you have some sample code that would be awesome too!
For example:
1. A user has clicked on a link that looks like this
2. As the index.htm file for noworkzone.com loads, it needs to parse the source parameter value from the URL and call the message.cgi script WITH the 1201 parameter (the CGI script resides in the /cgi-bin subdirectory)
3. Once it has successfully called the CGI script, the page simply continues loading (the CGI script in question has no effect on the webpage, rather it just ads some statistics to a flat file).
Is this possible? Are there any problems with calling an executable during page load? Does the fact that the CGI script resides in a sub-directory present any problems?
Any and all tips are greatly appreciated... If you have some sample code that would be awesome too!