Freelancers Network
 
skill list top cap
Homepage
Join the Freelancer's Network
Update your details
Find a freelancer
Post a project
Find a project
Projects Archive
Post a job
Find a job
Jobs Archive
See Dan's Pages
See Andy's Pages
Link to this site
Resources
Join/Leave Forum
Forum Messages
+Additions+ Adverts
Advertising
Contact Us
Subscribe to our newsletter - enter your email address and hit return
Freelancers.net is owned and operated by Andy Stowell and Dan Winchester
skill list end cap
guru web hostcom

Find me again on Freelancers.net

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]



Messages by Day
December 31st 2002
December 30th 2002
December 29th 2002
December 28th 2002
December 27th 2002
December 26th 2002
December 25th 2002
December 24th 2002
December 23rd 2002
December 22nd 2002
December 21st 2002
December 20th 2002
December 19th 2002
December 18th 2002
December 17th 2002
December 16th 2002
December 15th 2002
December 14th 2002
December 13th 2002
December 12th 2002
December 11th 2002
December 10th 2002
December 9th 2002
December 8th 2002
December 7th 2002
December 6th 2002
December 5th 2002
December 4th 2002
December 3rd 2002
December 2nd 2002
December 1st 2002


Messages by Month
December 2002
November 2002
October 2002
September 2002
August 2002
July 2002
June 2002
May 2002
April 2002
March 2002
February 2002
January 2002


Messages by Year
2008
2007
2006
2005
2004
2003
2002
2001
2000