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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T08:42:08+00:00 2026-05-31T08:42:08+00:00

Well, on my website.. load previous posts is already configured BUT WHEN TRIGGERED WITH

  • 0

Well, on my website.. load previous posts is already configured BUT WHEN TRIGGERED WITH A CLICK ON PARTICULAR LINK…

Now, the requirement is to load the previous posts on scroll down (AS IN FACEBOOK AND TWITTER…)

This is the source of the link which when clicked loads previous posts

<a id="more_<?php echo @$next_records?>" href="javascript: void(0)" class="more_records">
    <div id="bottomMoreLink">
        Dig More...
    </div>
</a>

Now as this code doesn’t include a function name, there is a script which has got the same class as this one to handle the request.. which is as under..

<script type="text/javascript">
$(document).ready(function(){
    $('a.more_records').livequery("click", function(e) {
        SOME CUSTOM CODE TO LOAD POSTS..
    });
}):
</script>

Now as per the requirement… I have two things to do..

  1. Detect the user has scrolled down to the end of the page.

This can be done as follows…

<scrtip type="text/javascript">
    $(window).scroll(function(){
        if($(window).scrollTop() == $(document).height() - $(window).height()) {
            lastRow();
        }
    });
</script>
  1. Trigger the thing that loads previous posts.. if the user has scrolled to the bottom of the page

THIS IS WHERE I AM LOOKING FOR SOME HELP, WHICH IS CURRENTLY BEING DONE BY A CLICK ..
am not able to figure out how to trigger the code in second block above..

Please suggest something.. I am completely unaware of jquery/javascript, so describe briefly

  • 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-31T08:42:10+00:00Added an answer on May 31, 2026 at 8:42 am

    If you call .click() without any arguments, it will trigger any click event handlers on the selected elements. So, use this:

    $('a.more_records').click();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got Wordpress 2.5 installed on my website. It works well, but I can't
Well I have a videos website and a few of its tables are: tags
Well I run a small video website and on the actual video page there
Not every website exposes their data well, with XML feeds, APIs, etc How could
I have a website which fetches information from RSS feeds periodically (well, currently manually,
Well, I guess this day had to come. My client's website has been compromised
In an ASP.NET 2.0 website, I have a string representing some well-formed XML. I
I'm making a website for a designer friend, he can design stuff quite well
So I have a website already set up, and I need a comet server
I have a website where drupal manage the contents, but another application handle the

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.