how to know idle user without refresing page using ajax plz give me solution and i also change the icon when user is idle like a facebook if our friend is online then its icon is green but when he is idle its icon r changed without reloading page ...give me a solution using ajax or php .......

If you can define "know" and "idle" that would be a start.

Airshow

You wouldn't use Ajax or php for that. You do that in javascript.

As the above response queried, you need to define idle. If idle means no full page gets or posts, then it's simply a window.timeout call.

If you need to detect mouse movement or keys then you'll have to find something specific. Google it, there should be lots of results. Some good ones in jquery.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.