FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » mouse movement detection?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: mouse movement detection? [message #173856 is a reply to message #173854] Tue, 10 May 2011 19:40 Go to previous messageGo to previous message
jimp is currently offline  jimp
Messages: 22
Registered: December 2010
Karma:
Junior Member
richard <member(at)newsguy(dot)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.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New PHP tutorial
Next Topic: Nslookup
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 05:13:09 GMT 2024

Total time taken to generate the page: 0.04371 seconds