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

  • Home
  • SEARCH
  • 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 8769923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T17:27:23+00:00 2026-06-13T17:27:23+00:00

I am using the Stacktack app to put the summary of post on a

  • 0

I am using the Stacktack app to put the summary of post on a website. But, when the stacktack load’s the page, the links point to direct url to stackoverflow site, but I want to amend the href link to something else (append a number to it).

Example If I give the id of current post, the link that stacktack add to the question is the complete one

http://stackoverflow.com/questions/13212050/update-the-a-href-after-page-load

I want it to be the share link

http://stackoverflow.com/q/13212050/1135954

I am using jquery to do this as

var ele = $('h3').find('a');
var l =ele.length;
for(var i=0;i<l;i++) {
    var toLink = ele[i].href+"/1135954" ;  /* Not exact change, but point is to update the link */
    console.log(toLink);
    $(ele[i]).attr("href",toLink);
}

But this is not updating the links, as the content of the stacktack is not yet loaded. I tried to do a alert on the length.

So, how would I be able to call this piece of code only after the stacktack has finished loading the content?

Please let me know

  • 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-13T17:27:24+00:00Added an answer on June 13, 2026 at 5:27 pm

    I think the possible reason that it is happening is because you’re loading the content after the document loads. So try calling this code on body load.

    <body onload="fun()"></body>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using a GridView in my Android app. Everything works perfectly on my phone,
I have just started the Hello World App using Blackberry Eclipse Plugin. I have
I'm getting a Null Pointer Exception when using my web app. This exception is
I've tried to run a Wicket app in an embedded Jetty, using this code:
I'm writing a node.js app using express and mongoose-auth. When I run my app,
I am using JBoss 7.1. My app is using spring 3.1, spring security, and
I start the app. Using it, nothing problem. Send it to background, using phone
I'm trying to create an app using phonegap and localStorage, it works well on
In my Winform app, I execute a exe file using cmd Process. The exe
In my app currently I'm using #if DEBUG Console.WriteLine(....) #endif In a number of

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.