Obtain window scroll properties

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bissatch@yahoo.co.uk

    Obtain window scroll properties

    Hi,

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

    Cheers

    Burnsy

  • Sergej Andrejev

    #2
    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?

    Comment

    • bissatch@yahoo.co.uk

      #3
      Re: Obtain window scroll properties

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

      Comment

      • Mladen Gogala

        #4
        Re: Obtain window scroll properties

        On Tue, 02 Aug 2005 14:56:30 -0700, bissatch wrote:
        [color=blue]
        > Hi,
        >
        > When I scroll my browser window, how do I get the value in pixels of how
        > much of the page I have scrolled?
        >
        > Cheers
        >
        >[/color]
        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.

        --


        Comment

        Working...