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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:39:01+00:00 2026-05-27T23:39:01+00:00

Made some 2 buttons on my blog so users can go the next or

  • 0

Made some 2 buttons on my blog so users can go the next or back trough posts. I think would be interesting to show the posts titles. It’s a blogspot blog so I’m trying to use a variable to catch the URL’s so I can use them with .load and target the post’s title:

$(function(){
   var getlink = $("a.blog-pager-newer-link").attr("href");
   var gettitle = $('.entry').load(getlink+ "#this-post-title"); //this part won't work!
   $("<div id='next-title'>"+gettitle+"</div>").appendTo("a.blog-pager-newer-link");
}); 
  • 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-27T23:39:01+00:00Added an answer on May 27, 2026 at 11:39 pm

    You have a general logic issue.

    $(function(){
          // set getlink equal to the value of the href attribute of the link
          var getlink = $("a.blog-pager-newer-link").attr("href");
          // set gettitle equal to the element with a class of entry
          var gettitle = $('.entry').load(getlink+ "#this-post-title"); //this part won't work!
          // create a new div that contains the toString of the gettitle object( [object Object] )
          $("<div id='next-title'>"+gettitle+"</div>").appendTo("a.blog-pager-newer-link");
    }); 
    

    What you actually want to do is load the contents of a url into the link.

    $(function(){
          // set getlink equal to the value of the href attribute of the link
          var getlink = $("a.blog-pager-newer-link").attr("href");
          // load contents of page at link into link
          $("a.blog-pager-newer-link").load(getlink + " #this-post-title"); // the space is important too
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some home made blog, and when viewing blog posts I'd like to
I made some Eclipse plugin and update site on Indigo(Eclipse v3.7). I can debug
Gmail seems to have some clever way of handling the back/forward buttons in a
A made some nine-patches for my buttons in Android but they scale in an
I programmed a simple html page with some buttons on them that I made
After one of my previous posts I received some good advice and I made
I have made a simple application in which i have use some buttons and
I've made my own keyboard with some buttons made A-Z button and gave them
I made some little programs with Swing-components in JRuby. Now I want to convert
I made some modifications to SVG Edit which contains a make file. When I

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.