Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #1544
| From | jimp@specsol.spam.sux.com |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: mouse movement detection? |
| Date | 2011-05-12 04:35 +0000 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <7m4s98-8i8.ln1@mail.specsol.com> (permalink) |
| References | (1 earlier) <ctvjs6tsn7pf4598bq3jhrp3ldkao071hu@4ax.com> <97ep98-c2m.ln1@mail.specsol.com> <ed3ls6tv3s71tka18uolfe0md5238d7ai9@4ax.com> <2irq98-6k2.ln1@mail.specsol.com> <o7gms69bkl6f8k053sk61cna3lj7nqlicp@4ax.com> |
Jeff North <jnorthau@yahoo.com.au> wrote: > On Wed, 11 May 2011 16:53:54 -0000, in comp.lang.php > jimp@specsol.spam.sux.com > <2irq98-6k2.ln1@mail.specsol.com> wrote: > >>| Jeff North <jnorthau@yahoo.com.au> wrote: >>| > On Wed, 11 May 2011 04:00:09 -0000, in comp.lang.php >>| > jimp@specsol.spam.sux.com >>| > <97ep98-c2m.ln1@mail.specsol.com> wrote: >>| > >>| >>| Jeff North <jnorthau@yahoo.com.au> wrote: >>| >>| > On Tue, 10 May 2011 09:57:16 -0700, in comp.lang.php richard >>| >>| > <member@newsguy.com> >>| >>| > <5jmrvpnl392w$.dlg@evanplatt.sux> wrote: >>| >>| > >>| >>| >>| Just curious to know if PHP, or other script language, has a method of >>| >>| >>| detecting mouse movement. >>| >>| >>| I had left a website page open all night and in the morning found I had >>| >>| >>| been transferred to another page that said my mouse had been idle for 10 >>| >>| >>| minutes. >>| >>| >>| I have a hunch that it was probably due more to nothing happening on the >>| >>| >>| page for a couple of hours. >>| >>| > >>| >>| > >>| >>| > It could be javascript and timers or the page header has a refresh >>| >>| > setting <meta http-equiv="refresh" content="600"> >>| >>| >>| >>| Can't be done with just an HTML refresh. >>| > >>| > True. You would need to define which page to direct to: >>| > <meta http-equiv="refresh" content="2;url=refresh1.htm"> >>| > >>| > Works with FF4 (although FF complains), IE9, Opera, Safari. >>| > >>| > This is an old technique for page refreshes before the days of AJAX. >>| >>| I'm not sure what your point is. >>| >>| Of course you can make a page refresh itself with HTML. >>| >>| But what you can not do with HTML is tell if the mouse has moved or not. >>| >>| Only client side scripting can do that. > > It is not whether the mouse has moved but whether or not the page has > been sitting idle for too long. > For example, you may have a form and a session cookie that times out > in 20 minutes. If you haven't successfully submitted the form within > the allotted time then the cookie expires and you will need to log in > again. > > Re-reading the OP I think that the statement was a red-herring, maybe > an over simplification of the session timeout. This can easily be > proven by disabling Javascript then waiting 10 minutes - then see what > happens. If nothing happens than it is probably Javascript looking at > mouse movement. If the page does redirect then it is probably the meta > refresh in action. If you read all the posts, you will see that he posted a link to the site in question. I accessed the site with Firebug turned on and watched all the javascript download and the timers reset as I moved the mouse. So, for the site in question: Yes, it uses javascript. Yes, it uses javascript timers to see if there is any mouse movement. And no, you can not do that with just HTML. -- Jim Pennino Remove .spam.sux to reply.
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mouse movement detection? richard <member@newsguy.com> - 2011-05-10 09:57 -0700
Re: mouse movement detection? Gregor Kofler <usenet@gregorkofler.com> - 2011-05-10 21:11 +0200
Re: mouse movement detection? richard <member@newsguy.com> - 2011-05-10 12:23 -0700
Re: mouse movement detection? "P E Schoen" <paul@pstech-inc.com> - 2011-05-10 15:42 -0400
Re: mouse movement detection? richard <member@newsguy.com> - 2011-05-10 13:56 -0700
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-10 21:15 +0000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-10 19:40 +0000
Re: mouse movement detection? Robert Heller <heller@deepsoft.com> - 2011-05-10 15:10 -0500
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-10 23:52 +0200
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-10 20:03 -0400
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-11 10:49 +0200
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-11 06:39 -0400
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-11 14:24 +0200
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-11 11:25 -0400
Re: mouse movement detection? Sherm Pendley <sherm.pendley@gmail.com> - 2011-05-11 11:36 -0400
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-11 12:30 -0400
Re: mouse movement detection? Robert Heller <heller@deepsoft.com> - 2011-05-10 20:24 -0500
Re: mouse movement detection? Erwin Moller <Since_humans_read_this_I_am_spammed_too_much@spamyourself.com> - 2011-05-11 08:16 +0200
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-11 11:02 +0200
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-11 13:18 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-11 04:00 +0000
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-11 11:11 +0200
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-11 16:57 +0000
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-11 22:42 +0200
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-11 23:34 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-11 16:53 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-12 12:26 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-12 04:35 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-12 16:09 +1000
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-12 06:52 -0400
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-13 06:48 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-12 16:12 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-13 07:36 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-12 22:05 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-13 10:14 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-13 00:56 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-13 20:34 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-13 15:36 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-14 10:01 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-14 03:51 +0000
Re: mouse movement detection? Jeff North <jnorthau@yahoo.com.au> - 2011-05-14 15:00 +1000
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-14 06:00 +0000
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-15 13:35 +0200
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-15 16:41 +0000
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-15 13:00 -0400
Re: mouse movement detection? "Twayne" <nobody@devnull.spamcop.net> - 2011-05-17 11:37 -0400
Re: mouse movement detection? Jerry Stuckle <jstucklex@attglobal.net> - 2011-05-17 12:34 -0400
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-16 00:36 +0200
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-16 02:07 +0000
Re: mouse movement detection? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2011-05-17 22:33 +0200
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-17 20:52 +0000
Re: mouse movement detection? "P E Schoen" <paul@pstech-inc.com> - 2011-05-18 08:10 -0400
Re: mouse movement detection? jimp@specsol.spam.sux.com - 2011-05-18 15:20 +0000
Re: mouse movement detection? dougatmilmacdotcom@example.com (Doug Miller) - 2011-05-16 12:00 +0000
Re: mouse movement detection? Sherm Pendley <sherm.pendley@gmail.com> - 2011-05-11 11:33 -0400
csiph-web