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 #173857 is a reply to message #173856] Tue, 10 May 2011 20:10 Go to previous messageGo to previous message
Robert Heller is currently offline  Robert Heller
Messages: 60
Registered: December 2010
Karma:
Member
At Tue, 10 May 2011 19:40:09 -0000 jimp(at)specsol(dot)spam(dot)sux(dot)com wrote:

>
> 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.

Right. JavaScript is your *enemy*... Many webpages have more
JavaScript than HTML... In some cases, the site practically downloads
the whole site and then does everything with JavaScript and the
occasional use of AJAX. Which is probably great if you have an
insanely fast computer on an insanely fast Internet connection. Such
sites totally suck on slower computers and esp. on slow (read: dialup)
Internet connections. Of course these JS timeout hacks fail when they
timeout and there is nolonger a network connection (sorry guys, I hung
up the phone...).

>
>
>

--
Robert Heller -- 978-544-6933 / heller(at)deepsoft(dot)com
Deepwoods Software -- http://www.deepsoft.com/
() ascii ribbon campaign -- against html e-mail
/\ www.asciiribbon.org -- against proprietary attachments
[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: Fri Nov 22 13:35:39 GMT 2024

Total time taken to generate the page: 0.04981 seconds