Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6975417
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:21:55+00:00 2026-05-27T17:21:55+00:00

how to update current page on scroll down with certain pixel remaining to page

  • 0

how to update current page on scroll down with certain pixel remaining to page end ?

Assuming everybody knows the functionality currently using by Facebook. Once i got logged in , i can see certian number of records as notification or news..bla bla bla.. it must be the mechanism to split the result set in html markup pages.. but how if user has 1000000 of records… to fetch the this amount of records and split them in certain pages will affect the performance certainly.. so how to handle this in context of perforance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:21:56+00:00Added an answer on May 27, 2026 at 5:21 pm

    Track scroll position.

    In short: with jquery you subscribe to scroll events and, when you are X pixels from the bottom, you start loading new portion of data.
    On the server you’ll have to have a script or method that gives you next ‘page’ of data, according to passed parameters.

    Here’s a piece of code from my current project. It’s in CoffeeScript, but I hope you’ll get the idea.

    subscribeToScrollEvents = () ->
      VK.addCallback 'onScroll', (scrollTop, windowHeight) ->
        # check if we have to load new portion of data
        if !window.app.isAutoloading && scrollTop + 250 >= $(document).height() - windowHeight
          # take 'write-lock'
          window.app.isAutoloading = true
          window.app.scrollMore()
    
    window.app.scrollMore = () ->
        # find out how much we already loaded
        offset = $('#history_events').find('.history_row').length
        $.get '/history/more',
          offset: offset,
          section: $('.history_section.selected').attr('id')
          (data) ->
            if data == ''
                # do nothing
            else
              # release lock
              window.app.isAutoloading = false
    
              # process data
              $('#history_events').append(data);
              window.app.highlight_profiles();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using javascript I'm trying to load images not on the current page (from an
I'm currently using ajax and jquery to update search results with a form that
I am building a desktop application that needs to update current user's status frequently.
I want update a column by adding days to current time. In pseudosyntax it
How do you update this? I've never seen any current team that actually checks
Is it possible to INSERT...ON DUPLICATE KEY UPDATE into a table on the current
I want to create a Delicious bookmarklet in Firefox that bookmarks the current page
I need to grab the HTML of the current page and submit it via
I have a PDF embedded in a web page using the following code: <object
I'm currently using the following code in my cms to check if visitor is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.