[error loading /home/hav/public_html/java/viewtimer1/havtimerapplet.nws]{NEOWEBSCRIPT ERROR: SAFE_load_file: unable to load 'havtimerapplet.nws' from '/home/hav/public_html/java/viewtimer1/background.htm'

can't read "id": no such variable
    while executing
"if {$id != ""} {
#
# NOTE:  The applet should really be sized as 0,0
#  but older versions of Netscape seem to fail with that size -
# so for now,..."

}

Horace's Java
Page View Timer Demo: BACKGROUND

Sometimes it might be nice to be able to determine how long a page is actually viewed by each visitor. There are several ways to do this based upon calculation of times between page visits. The most common of these use system log files to calculate time intervals between page requests by a particular visitor. However, these sorts of approaches fail to address several situations - namely:
  • time spent on the last page of a visitor's path cannot, typically, be calculated (unless you can record time information about actual link clicks instead of page access requests - most available tools do not - and cannot - count actual link clicks)

  • existing tools cannot really recognize that a visitor has gone back (or forward) using the browser's BACK button or history list.

Both forms of this little demo illustrate how one might use a little (invisible) java applet to gather information about how long a visitor actually views a particular page ... well - how long the page is opened in a browser window anyway. Both overcome the deficiencies listed above.

Version 1: - not my preference
In the first form of the demo, the applet makes calls, every so often, to a little cgi that actually maintains the records of how long a particular page is viewed by a particular visitor. On each call from the applet, the cgi increments a viewing time by some (applet specified) delta. This version is a bit onerous from the server's point of view.

Version 2: - my preferred version
In the newer form of this demo, individual thread executions simply increment a local counter. Only when the applet stops (due to the visitor having left the page) is the server cgi called to update info on the visitor's viewing time.

N.B. - This demo uses some of my previous stuff to establish unique identifiers for each visitor. If you're interested in the supporting stuff, drop by the Stats Demos page for more on the supporting stuff.

NOTE for folks behind a firewall

This demo and applet are designed to work for folks located behind a firewal. I know this won't work for all platforms and browsers so, if you could take a moment to drop me a line to let me know if it does work for you, I'd really really appreciate it. Please let me know which OS, Firewall and Browser you're using so that I can better define when this solution will work.

If you have any difficulty getting this demo to work and you suspect it is because you are behind a firewall, try CLICKING HERE in order to enter the demo using al alternate form of it's URL.

Search the Site
Home
http://www.hav.com/
Find Any or All of

http://www.hav.com/
  
Questions?
Feel free to drop by and chat if you have any questions - one of us is usually around during normal CST/CDT business hours.


hav.Software || Web Demos || Products || PC Neural Net Demo || Orders
JavaScript Neural Nets || WIPs || Services & Clients || Surfin' || News
Bonsai || Styling || Bonsai Databases || Bonsai Icons
Horace's Personal Home || Site Stats
Left Hand Fingertip Torture - aka trying to play classical guitar ;-)

Copyright © -1995-2010 by hav.Software. All Rights Reserved.

http://www.hav.com/ havBpNet:J, havFmNet:J, havBpNet++, havFmNet++, havBpETT, havCNet, WebSnarfer, havIndex and havChat are all trademarks of hav.Software.

Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.

There may be other trademarks or tradenames listed in this document to refer to the entities claiming the marks and names or products. hav.Software disclaims any proprietary interest in any trademark, tradename or products other than its own.


hav@hav.com
Modified - 08/18/01 - 21658537 - 5139498