Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #1490

Re: mouse movement detection?

Path csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!.POSTED!not-for-mail
From jimp@specsol.spam.sux.com
Newsgroups comp.lang.php
Subject Re: mouse movement detection?
Date Tue, 10 May 2011 19:40:09 -0000
Organization Aioe.org NNTP Server
Lines 40
Message-ID <ptgo98-g2i.ln1@mail.specsol.com> (permalink)
References <5jmrvpnl392w$.dlg@evanplatt.sux> <iqc2lc$t0c$1@dont-email.me> <1l6ipxzio1vee$.dlg@evanplatt.sux>
NNTP-Posting-Host 5FQzpG9PgxCHgWX2ynv4yg.user.speranza.aioe.org
X-Complaints-To abuse@aioe.org
User-Agent tin/1.8.3-20070201 ("Scotasay") (UNIX) (SunOS/5.10 (i86pc))
X-Notice Filtered by postfilter v. 0.8.2
Xref x330-a1.tempe.blueboxinc.net comp.lang.php:1490

Show key headers only | View raw


richard <member@newsguy.com> wrote:
> On Tue, 10 May 2011 21:11:39 +0200, Gregor Kofler wrote:
> 
>> Am 2011-05-10 18:57, richard meinte:
>>> Just curious to know if PHP, or other script language, has a method of
>>> detecting mouse movement.
>> 
>> No server side script can detect the movement of a mouse attached to a
>> client computer.
>> 
>>> 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.
>> 
>> You shouldn't believe everything you read on the internet...
>> 
>> All you did was not creating a request which could be detected by the
>> server (though this request could be invoked by JS without explicit
>> interaction, too).
>> 
>> Gregor
> 
> that's what I figured. Probably done through a cookie check.

Nope, a cookie can't tell if the mouse has moved, all it can determine is
that nothing had been clicked since the last reload.

To detect if the mouse moved, you would have to use something client side
like javascript to run a timer which resets on mouse actions and if it
ever times out, cause either a reload with a send to the server that the
timeout occured or a load another page.



-- 
Jim Pennino

Remove .spam.sux to reply.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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