473,390 Members | 1,091 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

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 17035
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Shane | last post by:
:) I am following a tutorial for php (hudzilla.org) absolutely loving it however I am having trouble with the counter example <?php // your content here... $filename = 'counter.txt'; // our...
16
by: Paul Rubin | last post by:
I'd like to have a function (or other callable object) that returns 0, 1, 2, etc. on repeated calls. That is: print f() # prints 0 print f() # prints 1 print f() # prints 2 # etc. ...
7
by: JellyON | last post by:
Hi. Is there a way to delay a call to a page counter (ie. call to a server script from an IMG tag) for the purpose to not lock the page loading awaiting counter be displayed. Maybe a...
0
by: Earl Anderson | last post by:
KB Article Q140908 provided the following function to create an Auto Incrementing Counter: Function Next_Custom_Counter () On Error GoTo Next_Custom_Counter_Err Dim MyDB As Database Dim...
7
by: mistral | last post by:
I use htaccess to protect directory and granting access to download file only for the authorized users. Just want implement simple PHP file download counter for single file. I need track the number...
0
by: Trevor L. | last post by:
I decide to put a custom Hit Counter on my page (below). Then I won't be reliant on the standard FrontPage one which uses webbots. It is called by <b>Hit Counter: </b><!--#include...
12
by: devospice | last post by:
Hi, I'm trying to create a download counter for individual files on a web site and I'm not sure how to do this. Right now I'm using Webalizer to just read the log files and see how many times...
5
by: jasonchan | last post by:
How would you set up a counter in javascript that goes from 5 to 0 This is what i have so far and it is not displaying in the div container "counter" for some reason... <!DOCTYPE html PUBLIC...
3
blackstormdragon
by: blackstormdragon | last post by:
Here were our instructions: "My mother always took a little red counter to the grocery store. The counter was used to keep tally of the amount of money she would have spent so far on that visit to...
2
by: gumbercules | last post by:
I am designing a site that is regulary updated with new podcasts. I would like to be able to have a counter next to each podcast showing how many hits/listens/plays/views each particular podcast has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.