469,306 Members | 1,901 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,306 developers. It's quick & easy.

hit counter

Does someone know where I can obtain a (free) simple js hit counter (that
doesn't rely on cookies).
Thanks.

Pete Giotta
Jul 20 '05 #1
7 16891
Hi Pete,

There's no way to manage this with JavaScript.
JavaScript is a pure Clientside language. What
are you searching for? An hit counter which counts
all hits of your site?

To do this you need a method to store information
(in your case the hits) outside the actual Browser
Window and to keep this information for later use.
With JavaScript you can't get further than the actual
Browser Windows. If you close this window all information
will get lost. The only way I know to save Information
with JavaScript are Cookies.
But I don't know how you want to make an hit counter
with cookies? Cookies are stored locally, at the client's
machine.

Saludo
Paul.
Jul 20 '05 #2
In article <vo************@corp.supernews.com>, gi*******@charter.net
enlightened us with...
Does someone know where I can obtain a (free) simple js hit counter (that
doesn't rely on cookies).
Thanks.

Pete Giotta


There are tons of free counters out there (just search google), none of
which can be done with pure JS (they all have a backend of Perl, etc,
but many don't require that backend to be on your server). I don't
believe many rely on cookies - they use the IP address.
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------
Jul 20 '05 #3
In article <op**************@news.individual.net>, paul.wellner@united-
scripts.com says...
There's no way to manage this with JavaScript.
Yes there is. Here's a starter for 10.
http://askasp.com/articles.asp?ArtID=32
JavaScript is a pure Clientside language.
No it isn't. You can use JavaScript in ASP documents, and Netscape
servers come with their own brand of server-side JavaScript.

To do this you need a method to store information
(in your case the hits) outside the actual Browser
Window and to keep this information for later use.
With JavaScript you can't get further than the actual
Browser Windows.
See above.

If you close this window all information
will get lost. The only way I know to save Information
with JavaScript are Cookies.


Ah, so you don't know about ASP or server-side JavaScript?

--
Hywel I do not eat quiche
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #4
Hywel Jenkins wrote:
Ah, so you don't know about ASP or server-side JavaScript?


Yes, I knew that there is something to run JavaScript on the
Server, with the attribute runat="server".
I supposed the original poster was talking about the 'typical'
clientside JavaScript - sorry.

But I didn't know that you can use JavaScrip in ASP. Ok, in
ASP .NET you can implement al you want, there is a default
support for JScript given in the CLR. But I didn't know that
ist is possible with not-.NET ASP.
The attribute runat="server" (or similar) is for ASP, for
the Netscape server or both?

Saludo
Paul.
Jul 20 '05 #5
Paul Wellner Bou <pa**********@united-scripts.com> writes:
But I didn't know that you can use JavaScrip in ASP. Ok, in
ASP .NET you can implement al you want, there is a default
support for JScript given in the CLR. But I didn't know that
ist is possible with not-.NET ASP.
You can use any language with ASP that has an implementation for the
Windows Scripting Host. That includes Perl, with a third party
implementation. Out of the box, it includes VBScript and JScript.
The defualt language for ASP is VBScript (and for ASP.net it is VB,
and you can use any language that has a compiler to .net).
The attribute runat="server" (or similar) is for ASP, for
the Netscape server or both?


I don't know how Netscape does it, but I am pretty sure that
runat="server" is specific to ASP.

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #6
And on the day 08 Oct 2003 03:05:26 +0200, lr*@hotpop.com enlightened us
with <ad**********@hotpop.com>...
The attribute runat="server" (or similar) is for ASP, for
the Netscape server or both?


I don't know how Netscape does it, but I am pretty sure that
runat="server" is specific to ASP.


No, I have used it with IPlanet / Netscape Enterprise Server. I'm not
sure what you have to do to set it up, though, as I'm not the network
admin. We have Unix servers.
I believe Websphere also allows it. I saw references to it in the
documentation.

However, the implementation may be different depending on platform. The
only reason I have ever had to use it was a lack of a decent scripting
ability when I was on a Unix server. When I do ASP, I simply set the
language at the top and use <% %> syntax. Now that we got JSP for Unix,
I don't use it at all.

--------------------------------------------------
~kaeli~
Kill one man and you are a murderer. Kill millions
and you are a conqueror. Kill everyone and you
are God.
http://www.ipwebdesign.net/wildAtHeart/
http://www.ipwebdesign.net/kaelisSpace/
------------------------------------------------
Jul 20 '05 #7
Thanks. I went with a free one. Just have to tolerate their small ad, I
guess.

Peter

"kaeli" <in********************@NOSPAMatt.net> wrote in message
news:MP************************@nntp.lucent.com...
In article <vo************@corp.supernews.com>, gi*******@charter.net
enlightened us with...
Does someone know where I can obtain a (free) simple js hit counter (that doesn't rely on cookies).
Thanks.

Pete Giotta


There are tons of free counters out there (just search google), none of
which can be done with pure JS (they all have a backend of Perl, etc,
but many don't require that backend to be on your server). I don't
believe many rely on cookies - they use the IP address.
-------------------------------------------------
~kaeli~
Jesus saves, Allah protects, and Cthulhu
thinks you'd make a nice sandwich.
http://www.ipwebdesign.net/wildAtHeart
http://www.ipwebdesign.net/kaelisSpace
-------------------------------------------------

Jul 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Shane | last post: by
16 posts views Thread by Paul Rubin | last post: by
7 posts views Thread by JellyON | last post: by
reply views Thread by Earl Anderson | last post: by
7 posts views Thread by mistral | last post: by
reply views Thread by Trevor L. | last post: by
12 posts views Thread by devospice | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.