Script for # of visitors view the page?
I recently visited a web site that had a line on the home page saying "You are one of N visitors currently viewing this page" (where N is the total number of people looking at that page at that moment).
Clearly some sort of script is being used to generate this message (it's not an ASP page and I don't think it's CFM).
Any idea what script is being used? I'd like to use it on my site.
Thanks.
------------------
ArtsNFlies.com
Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!
minton posted this at 18:10 — 15th February 2000.
They have: 314 posts
Joined: Nov 1999
Jaiem, try www.livecounter.com It is not exactly what you want but it will update the counter when someone else views the page without a refresh. Worth a look.
------------------
Thomas Minton
The JavaScript Place
Get paid $20 - $160 an hour for viewing adverts
Thomas
The JavaScript Place
The JavaScript Place Forums
Jaiem posted this at 18:47 — 15th February 2000.
They have: 1,191 posts
Joined: Apr 1999
Thanks, but that's just a counter. I have that already.
This site actually says how many different people are looking at the page at that moment. I suppose it could be a trick but don't think so.
I'd rather not ask the web owner, he's a competitor.
------------------
ArtsNFlies.com
Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!
Maverick posted this at 20:53 — 15th February 2000.
They have: 334 posts
Joined: Dec 1999
I'd be willing to bet it's a Java applet, not a Perl script. Take a peek at the source code and see how it's implemented. If it's an applet do a search for something similar at your favorite Java archive. If it's CGI search your favorite Perl sites.
RC posted this at 13:08 — 16th February 2000.
They have: 89 posts
Joined: Sep 1999
Here is an article on how to accomplish this with ASP. Not sure if it works as I've never tried it, but...
http://www.4guysfromrolla.com/webtech/061399-2.shtml
Jaiem posted this at 13:41 — 16th February 2000.
They have: 1,191 posts
Joined: Apr 1999
Mav - Already checked the source code.
Nope, not Java. It just appears as a line of HTML code with the text "You are one of N visitors currently viewing this page"
That's why I think it's a CGI called via SSI.
------------------
ArtsNFlies.com
Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!
Justin S posted this at 14:42 — 16th February 2000.
They have: 2,076 posts
Joined: Jun 1999
Hmm- It HAS to be a Java Applet. I've seen something like that before and it was java. I doubt any CGI script could do that w/o refreshing. And the page would have to be updated somehow for the CGI to work.
Post a URL maybe?
------------------
The fireburn.com Network:
Justin Stayton - [email] [icq]
Maverick posted this at 18:22 — 16th February 2000.
They have: 334 posts
Joined: Dec 1999
Justin, that's what led me to believe it's java, at least on the front end. The back end could be CGI and the front end is perhaps a Java applet that repeatedly refreshes the CGI back-end. That sounds a bit server-intensive, but it could be done.
Jaiem, obviously the thing is getting parsed at server level to return the X value. So instead of viewing the file in your browser, download it without the view. That will by-pass whatever the server is doing to it and will show you the real source code.
Jaiem posted this at 18:29 — 16th February 2000.
They have: 1,191 posts
Joined: Apr 1999
Mav - how do I do that?
Thanks.
------------------
ArtsNFlies.com
Original art, hand tied flies, unique books and gifts, free sweepstakes and MORE!
Come see what everyone is talking about!
werehere posted this at 20:16 — 16th February 2000.
They have: 98 posts
Joined: Dec 1999
I have seen it done written in TCL, so you'd have to have a TCL interpreter installed on your server.
Also I have seen it done using PHP and cookies just so you know.
I have never done it personally so I could not tell you how exactely to go about it.
------------------
http://www.were-here.com/cgi-bin/ubbcgi/Ultimate.cgi
We're Here Forums!
Quickstrike posted this at 23:48 — 2nd March 2000.
They have: 16 posts
Joined: Jun 1999
I saw this at tweakfiles.com forum (fusetalk)
Then i go to: http://tweak3d.pcstats.com/whoson.cfm
Because in the code it says it got the current number from whoson.cfm script!
Anyway i don't think it is java applet
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.