|
|
 |
RE: FN-FORUM Hopefully a quick question
date posted 4th December 2002 16:26
That's rather interesting.
I can assume that javascript is enabled, some of the clients additions
to the site would not work without it.
What is of interest is the onClose event, is that reliable and workable
on the bulk of browsers (IE and NN would go). What I am wondering what
limitations it has, I assume that it detects the browser window closing
and perhaps the user moving off-site, but if it did all that then I
wonder why commercial forum software does not use it to make their 'x
users online' statistics more reliable.
Do you know what limitations this idea would have?
If it is reliable it could be useful for a problem I have on a private
site with the possibility of multiple users editing the same documents
online. (ie detecting when one of the users has exited the edit by going
elsewhere without going to the menu or logging off first).
---
www.galcomp.net - Full Featured Web hosting
www.cvdb.info - Free CV storage and autoresponder
-----Original Message-----
From: [EMAIL REMOVED]
[EMAIL REMOVED] On Behalf Of Darran Shepherd
Sent: 04 December 2002 16:02
To: [EMAIL REMOVED]
Subject: RE: FN-FORUM Hopefully a quick question
> A client is potentially wanting a system whereby he knows if
> a logged in user is still logged in even when the user is not
> traversing the site currently but is sitting on one of the
> sites pages for a prolonged period.
Any restrictions on browsers? If you can get away with targeting IE and
Moz based browsers (poss. Op 7, haven't checked yet), you could just use
javascript.
Using XmlHttpRequest from IE and the equivelant provided by Moz, you can
have a javascript function called on load of the page, have it sleep for
10 seconds (or however long you want) and then request a page which can
record that the user is still active.
Alternatively, you could bind a javascript method to the onClose event.
This could then notify the server of the user logging off. This way you
could just assume that the user is still on the site until the browser
let's you know otherwise.
Let me know if you want anything more specific.
Darran.
========
Advertise with Freelancers.net +Additions+
http://www.freelancers.net/advert.php
Freelancers and Freelance Jobs:
http://www.freelancers.net
Forum FAQs:
http://freelancers.netrickery.com
To unsubscribe please email:
[EMAIL REMOVED]
If you have difficulties unsubscribing please email:
[EMAIL REMOVED]
|
 |
|