Does someone know where I can obtain a (free) simple js hit counter (that
doesn't rely on cookies).
Thanks.
Pete Giotta 7 17047
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.
In article <vo************ @corp.supernews .com>, gi*******@chart er.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
-------------------------------------------------
In article <op************ **@news.individ ual.net>, paul.wellner@un ited-
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
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.
Paul Wellner Bou <pa**********@u nited-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.'
And on the day 08 Oct 2003 03:05:26 +0200, lr*@hotpop.com enlightened us
with <ad**********@h otpop.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/
------------------------------------------------
Thanks. I went with a free one. Just have to tolerate their small ad, I
guess.
Peter
"kaeli" <in************ ********@NOSPAM att.net> wrote in message
news:MP******** *************** *@nntp.lucent.c om... In article <vo************ @corp.supernews .com>, gi*******@chart er.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 ------------------------------------------------- This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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 counter file
$fp = fopen( $filename,"r"); // open it for READING ("r")
$counter = fread($fp, filesize($filename) ); // read in value
|
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.
There should never be any possibility of any number getting returned
twice, or getting skipped over, even if f is being called from
|
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 setTimeout() launching an equivalent of "document.write", but
writing in a specific DIV ? Thanks in advance for your ideas.
Actually, the counter is called (without delay) like this :
<div id="count" style="position: absolute; visibility: visible; top:
|
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 MyTable As Recordset
Dim NextCounter As Long
|
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 of downloads
of this file on my website, IP address and date. Since I have no access
to Apache log files, I need some other way, use script that will write
a log file. Is there some handy way?
M.
| |
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 file="_fpclass/hit_count.inc"-->
The code it includes is below.
OK, it works - sort of.
If I go to Guestbook and then return via the Home button, the counter
|
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 the files I'm
interested in were downloaded. The problem is Webalizer breaks it up
by month and I want a running total. I'd also like to see the counts
without having to log in to Webalizer in the first place. Not that
logging in or adding the...
|
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 "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled...
|
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 the store if she bought everything in the basket. The counter had a four-digit display, increment buttons for each digit, and a reset button. An overflow indicator came up red if more money was entered than the $99.99 it would register. (This was a...
|
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 gotten.
eg: podcast001.mp3 plays: 12
I have set up a column in a mysql database for each podcast called 'counter'.
I then tried to make a php-javascript hybrid code with functions on onClick that went into and added one to the counter...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |