M
Marcel Brekelmans
Hi,
This is my situation:
My ISP doesn't allow me the execute server-code. So, no ASP or otherwise.As
a small compensation, they run some CGI scripts that we can use. With one of
these scripts I maintain a set of counters, one on each of my HTML pages
that they host. It is all very basic, the files are no more then textfiles
that ONLY contain the number of hits, as a characterstring. The filename is
free for me to choose, the extension MUST BE "xbm". So, for the counter on
the Links page that has had 248 hits uptill now, the file would be
"links.xbm", with the contents "248". A file with length 4 (EOL is 1
character). What I would like is to be able client-side to read these
counterfiles. But as far as I can tell it is not possible.
One trick in Javascript would be to create an extra, hidden, frame on my
page and load the file into that frame. The frame contents would then
reflect the contents of the file. Unfortunately, since the file's extension
is 'xbm', the file is not recognized as textual, and the frame will contain
the file as a <IMG> tag.
In VBScript you could think that the FileSystemObject could do the trick.
However, that acts on the local system, i.e. the pc of the client and not on
the server: an URL is not a valid filepath. Besides, it will generate an
Active-X warning and I don't want that.
Any help?
This is my situation:
My ISP doesn't allow me the execute server-code. So, no ASP or otherwise.As
a small compensation, they run some CGI scripts that we can use. With one of
these scripts I maintain a set of counters, one on each of my HTML pages
that they host. It is all very basic, the files are no more then textfiles
that ONLY contain the number of hits, as a characterstring. The filename is
free for me to choose, the extension MUST BE "xbm". So, for the counter on
the Links page that has had 248 hits uptill now, the file would be
"links.xbm", with the contents "248". A file with length 4 (EOL is 1
character). What I would like is to be able client-side to read these
counterfiles. But as far as I can tell it is not possible.
One trick in Javascript would be to create an extra, hidden, frame on my
page and load the file into that frame. The frame contents would then
reflect the contents of the file. Unfortunately, since the file's extension
is 'xbm', the file is not recognized as textual, and the frame will contain
the file as a <IMG> tag.
In VBScript you could think that the FileSystemObject could do the trick.
However, that acts on the local system, i.e. the pc of the client and not on
the server: an URL is not a valid filepath. Besides, it will generate an
Active-X warning and I don't want that.
Any help?