Obtain window scroll properties

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

When I scroll my browser window, how do I get the value in pixels of
how much of the page I have scrolled?



Re: Obtain window scroll properties

With php? No way...
You can get it with javascript. However I don't understand why one
posibly need such thing. Meaby you should try to give more details of
your problem?

Re: Obtain window scroll properties

Woops, sorry. I was logged into the wrong newsgroup, my mistake

Re: Obtain window scroll properties

On Tue, 02 Aug 2005 14:56:30 -0700, bissatch wrote:

Quoted text here. Click to load it
That is extremely simple. PHP runs on the server, usually within the
context of the httpd process. Browser runs on the client. The two are
connected through HTTP protocol which doesn't give away the cursor
position to the server. That means that your browser does not tell the
server about anything you are doing, as long as it is not defined by HTTP,
like, for instance, pressing a submit button. If it does, then you have
spyware on your system. In other words, you're asking for an impossible
thing. The language that runs on the clients is Javascript or, in some
very bad and dangerous cases, visual basic.


Site Timeline