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 8117217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:05:33+00:00 2026-06-06T04:05:33+00:00

Am using dataprovider object to show the list with 25 records at a time

  • 0

Am using dataprovider object to show the list with 25 records at a time and instead of pagination, i want to show next page at end of scroll using the following code.
But is there any better way instead of window.location.href
if not, is there any option to show the loading message till the page loads.

$(document).ready(function()
{
    $('#content').bind('scroll', function () 
    {   
        totalDivHeight = eval($('#content')[0].scrollHeight) - eval($('#content').height());
        scrollPosition =eval($('#content').scrollTop())+25;// + eval($('#content').height());

        if (scrollPosition >= totalDivHeight)
        {   
            nextPageID = eval("<?= $nextPageID; ?>");
            prevPageID = eval("<?= $prevPageID; ?>");
            totalPages = eval("<?= $totalPages; ?>");
            if (nextPageID < totalPages)
                window.location.href='<?php echo $url;?>'+'&Store_page='+nextPageID;

        }
    });

});

Edit: i tried ajax function instead of window.location.href but i dont know how to send the pagenumber variable to the provider?

  • 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-06-06T04:05:35+00:00Added an answer on June 6, 2026 at 4:05 am

    You are probably looking to lazy load content and attach to the end of the table and you do that via ajax.

    You should not reinvent the wheel others already have done this, just one of the implementations is here:

    http://dcarrith.github.com/jquery.mobile.lazyloader/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using a List with an ArrayCollection as a DataProvider . The list
I have a MenuBar, which is using a XMLListCollection object as a dataProvider. I
I have a tree using an ArrayCollection/Object data provider. The following code worked with
I'm using ClistView to display the content of a dataprovider. ClistView is supposed to
Using a populated Table Type as the source for a TSQL-Merge. I want to
Using CI for the first time and i'm smashing my head with this seemingly
I'm using a Repeater object in Flex. Would be possible to stop the repeater
I am using the Flex PopUpButton & data binding a Menu object to the
I am using following query to insert some large text data : internal static
Using Flash Builder 4.6, I am following http://www.flex-blog.com/adobe-air-sqlite-example (edit: link seems to be broken)

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.