in reply to Executing a perl script thats on located on a website
The easiest, but certainly a "hack":
<!-- HTML images: --> <img src="http://example.com/counter.cgi" width="1" height="1" />
Or you can use a XMLHttpRequest to trigger the CGI script.
If you use flash anyway, you can flash do the work for you, requesting an URL without updating the browser window.
As a side node, this looks like a XY Problem to me, like you are trying to count visitors or hits on your page. There are far better approaches to do that, for example parsing the server log files. Or installing a custom log handler.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Executing a perl script thats on located on a website
by SillyMonk (Initiate) on Jan 29, 2008 at 21:41 UTC | |
by Fletch (Bishop) on Jan 29, 2008 at 21:44 UTC | |
|